Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 222.9 MB / 238.9 MB, free: 4.762 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 192.5 kB / 289.1 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03341/0.03341, allocations: 8.781 MB / 348.1 MB, free: 4.906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 81.42 kB / 410.5 MB, free: 42.38 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08264/0.08412, allocations: 51.56 MB / 462.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02513/0.1093, allocations: 25 MB / 487.1 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01622/0.1256, allocations: 7.87 MB / 494.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005282/0.1309, allocations: 167.5 kB / 495.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01624/0.1472, allocations: 7.214 MB / 0.4906 GB, free: 6.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008752/0.1559, allocations: 2.797 MB / 0.4933 GB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005652/0.1616, allocations: 1.887 MB / 0.4951 GB, free: 1.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01129/0.1729, allocations: 9.393 MB / 0.5043 GB, free: 8.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02563/0.1986, allocations: 14.37 MB / 0.5183 GB, free: 9.793 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007437/0.2061, allocations: 4.081 MB / 0.5223 GB, free: 5.699 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00795/0.2141, allocations: 4.975 MB / 0.5272 GB, free: 0.707 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1865/0.4006, allocations: 0.8547 MB / 0.528 GB, free: 23.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00434/0.405, allocations: 1.22 MB / 0.5292 GB, free: 23.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001858/0.4068, allocations: 2.167 MB / 0.5313 GB, free: 23.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006531/0.4134, allocations: 4.567 MB / 0.5358 GB, free: 22.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01781/0.4312, allocations: 17.71 MB / 0.5531 GB, free: 19.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.4312, allocations: 0.5312 kB / 0.5531 GB, free: 19.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4312, allocations: 0 / 0.5531 GB, free: 19.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006076/0.4319, allocations: 0.5 kB / 0.5531 GB, free: 19.25 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.03355/0.4654, allocations: 10.81 MB / 0.5636 GB, free: 14.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.4655, allocations: 10.06 kB / 0.5636 GB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0037/0.4692, allocations: 1.267 MB / 0.5649 GB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02984/0.4991, allocations: 5.639 MB / 0.5704 GB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01086/0.5099, allocations: 5.663 MB / 0.5759 GB, free: 8.746 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003167/0.5103, allocations: 0.5821 MB / 0.5765 GB, free: 8.484 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00205/0.5123, allocations: 0.7649 MB / 0.5772 GB, free: 8.234 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01935/0.5317, allocations: 12.77 MB / 0.5897 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001492/0.5319, allocations: 15.91 kB / 0.5897 GB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009051/0.5328, allocations: 322.6 kB / 0.59 GB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004416/0.5332, allocations: 0.4923 MB / 0.5905 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02002/0.5533, allocations: 12.25 MB / 0.6025 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06372/0.617, allocations: 43.72 MB / 0.6452 GB, free: 4.824 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02166/0.6387, allocations: 25.18 MB / 0.6698 GB, free: 8.777 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004298/0.643, allocations: 2.971 MB / 0.6727 GB, free: 5.801 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003785/0.6434, allocations: 246.8 kB / 0.6729 GB, free: 5.535 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00376/0.6472, allocations: 2.57 MB / 0.6754 GB, free: 2.898 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 5.922e-06/0.6472, allocations: 4 kB / 0.6754 GB, free: 2.895 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.03729/0.6845, allocations: 18.12 MB / 0.6931 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001467/0.6847, allocations: 355.5 kB / 0.6934 GB, free: 256 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004747/0.6895, allocations: 3.522 MB / 0.6969 GB, free: 12.73 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004516/0.6899, allocations: 93.7 kB / 0.697 GB, free: 12.63 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001893/0.6918, allocations: 3.382 MB / 0.7003 GB, free: 9.23 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001141/0.693, allocations: 1.346 MB / 0.7016 GB, free: 7.895 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001588/0.6946, allocations: 1.084 MB / 0.7026 GB, free: 6.801 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.836e-05/0.6947, allocations: 305.1 kB / 0.7029 GB, free: 6.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00353/0.6982, allocations: 2.556 MB / 0.7054 GB, free: 3.938 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1718/0.8701, allocations: 4.502 MB / 0.7098 GB, free: 166 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007962/0.8781, allocations: 7.449 MB / 0.7171 GB, free: 163.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.951e-05/0.8781, allocations: 19.34 kB / 0.7171 GB, free: 163.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.0126/0.8907, allocations: 8.272 MB / 0.7252 GB, free: 162.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.747e-05/0.8908, allocations: 56.98 kB / 0.7253 GB, free: 162.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.711e-05/0.8909, allocations: 63.25 kB / 0.7253 GB, free: 162.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00252/0.8934, allocations: 0.9985 MB / 0.7263 GB, free: 162.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004056/0.8975, allocations: 1.255 MB / 0.7275 GB, free: 162.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/0.9076, allocations: 8.236 MB / 0.7356 GB, free: 158.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004114/0.9117, allocations: 365.1 kB / 0.7359 GB, free: 158.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004224/0.9121, allocations: 264.1 kB / 0.7362 GB, free: 158.7 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0041/0.9162, allocations: 2.903 MB / 0.739 GB, free: 157.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006693/0.9169, allocations: 389.6 kB / 0.7394 GB, free: 157.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008412/0.9253, allocations: 6.183 MB / 0.7454 GB, free: 154.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.958e-05/0.9254, allocations: 40.56 kB / 0.7454 GB, free: 154.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.9254, allocations: 11.84 kB / 0.7455 GB, free: 154.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.827e-05/0.9254, allocations: 21 kB / 0.7455 GB, free: 154.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01859/0.944, allocations: 14.92 MB / 0.76 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.281e-05/0.9441, allocations: 8.125 kB / 0.7601 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002372/0.9464, allocations: 0.6807 MB / 0.7607 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002161/0.9486, allocations: 0.8859 MB / 0.7616 GB, free: 142.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002208/0.9488, allocations: 83.61 kB / 0.7617 GB, free: 142.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008029/0.9569, allocations: 7.191 MB / 0.7687 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.9569, allocations: 4 kB / 0.7687 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01024/0.9671, allocations: 8.777 MB / 0.7773 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001718/0.9689, allocations: 0.9062 MB / 0.7781 GB, free: 125.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005435/0.9694, allocations: 72 kB / 0.7782 GB, free: 125.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001818/0.9712, allocations: 203.7 kB / 0.7784 GB, free: 125.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004817/0.9717, allocations: 271.1 kB / 0.7787 GB, free: 125.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001977/0.9719, allocations: 119.9 kB / 0.7788 GB, free: 125.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002697/0.9746, allocations: 2.363 MB / 0.7811 GB, free: 122.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.9747, allocations: 0 / 0.7811 GB, free: 122.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003981/0.9786, allocations: 1.45 MB / 0.7825 GB, free: 121.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01015/0.9888, allocations: 9.502 MB / 0.7918 GB, free: 111.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0081/0.9969, allocations: 6.454 MB / 0.7981 GB, free: 105.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.9969, allocations: 2.531 kB / 0.7981 GB, free: 105.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003764/1.001, allocations: 3.082 MB / 0.8011 GB, free: 102.1 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003599/1.004, allocations: 0.7756 MB / 0.8019 GB, free: 101.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08389/1.088, allocations: 59.43 MB / 0.8599 GB, free: 37.32 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00381/1.092, allocations: 5.008 MB / 0.8648 GB, free: 32.27 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00426/1.096, allocations: 1.586 MB / 0.8663 GB, free: 30.68 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002992/1.099, allocations: 2.749 MB / 0.869 GB, free: 27.93 MB / 494.1 MB Notification: Performance of SimCode: time 7.42e-07/1.099, allocations: 0 / 0.869 GB, free: 27.93 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2746/1.374, allocations: 111.1 MB / 0.9775 GB, free: 99.43 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000145/1.374, allocations: 218.1 kB / 0.9777 GB, free: 99.18 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.751/5.125, allocations: 3.938 kB / 0.9777 GB, free: 99.17 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)