Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",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.001226/0.001226, 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.323/1.323, allocations: 222.9 MB / 238.9 MB, free: 4.777 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.001302/0.001302, allocations: 188.4 kB / 289.1 MB, free: 2.52 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03365/0.03365, allocations: 8.785 MB / 348.1 MB, free: 4.906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 75.81 kB / 410.5 MB, free: 42.44 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07236/0.0739, allocations: 51.57 MB / 462.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02397/0.0979, allocations: 25.02 MB / 487.1 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01391/0.1118, allocations: 7.859 MB / 495 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0043/0.1162, allocations: 167.5 kB / 495.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01583/0.1321, allocations: 7.237 MB / 0.4906 GB, free: 6.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009184/0.1413, allocations: 2.794 MB / 0.4933 GB, free: 3.566 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005228/0.1465, allocations: 1.902 MB / 0.4952 GB, free: 1.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01084/0.1573, allocations: 9.374 MB / 0.5043 GB, free: 8.266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01945/0.1768, allocations: 14.37 MB / 0.5184 GB, free: 9.766 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005169/0.182, allocations: 4.069 MB / 0.5223 GB, free: 5.684 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006131/0.1882, allocations: 4.99 MB / 0.5272 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1677/0.356, allocations: 0.8526 MB / 0.528 GB, free: 23.49 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004099/0.3601, allocations: 1.214 MB / 0.5292 GB, free: 23.49 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002559/0.3626, allocations: 2.166 MB / 0.5313 GB, free: 23.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006869/0.3695, allocations: 4.566 MB / 0.5358 GB, free: 22.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01566/0.3852, allocations: 17.72 MB / 0.5531 GB, free: 19.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3852, allocations: 0 / 0.5531 GB, free: 19.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3853, allocations: 0 / 0.5531 GB, free: 19.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004267/0.3857, allocations: 1.906 kB / 0.5531 GB, free: 19.17 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.03203/0.4177, allocations: 10.8 MB / 0.5637 GB, free: 14.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.4178, allocations: 9.875 kB / 0.5637 GB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004131/0.4219, allocations: 1.269 MB / 0.5649 GB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03002/0.4519, allocations: 5.631 MB / 0.5704 GB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01144/0.4634, allocations: 5.667 MB / 0.5759 GB, free: 8.695 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004277/0.4639, allocations: 0.5829 MB / 0.5765 GB, free: 8.434 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003239/0.4671, allocations: 0.7696 MB / 0.5773 GB, free: 8.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02593/0.4931, allocations: 12.77 MB / 0.5897 GB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001905/0.4933, allocations: 13.41 kB / 0.5897 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001066/0.4944, allocations: 327.9 kB / 0.5901 GB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004291/0.4948, allocations: 0.4929 MB / 0.5905 GB, free: 13.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0225/0.5173, allocations: 12.25 MB / 0.6025 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07257/0.5899, allocations: 43.72 MB / 0.6452 GB, free: 4.758 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02189/0.6118, allocations: 25.19 MB / 0.6698 GB, free: 8.703 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004905/0.6168, allocations: 2.96 MB / 0.6727 GB, free: 5.734 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004651/0.6172, allocations: 250 kB / 0.6729 GB, free: 5.465 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00483/0.6221, allocations: 2.584 MB / 0.6754 GB, free: 2.82 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 1.328e-05/0.6221, allocations: 0 / 0.6754 GB, free: 2.82 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.04149/0.6636, allocations: 18.12 MB / 0.6931 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000167/0.6638, allocations: 355.5 kB / 0.6935 GB, free: 180 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006585/0.6704, allocations: 3.515 MB / 0.6969 GB, free: 12.66 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006762/0.6711, allocations: 93.7 kB / 0.697 GB, free: 12.56 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002059/0.6732, allocations: 3.377 MB / 0.7003 GB, free: 9.164 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001555/0.6748, allocations: 1.352 MB / 0.7016 GB, free: 7.824 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001707/0.6765, allocations: 1.084 MB / 0.7027 GB, free: 6.73 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.6766, allocations: 305.1 kB / 0.703 GB, free: 6.43 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003771/0.6804, allocations: 2.549 MB / 0.7055 GB, free: 3.875 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1803/0.8607, allocations: 4.51 MB / 0.7099 GB, free: 166 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009686/0.8704, allocations: 7.451 MB / 0.7171 GB, free: 163.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-05/0.8705, allocations: 18.09 kB / 0.7172 GB, free: 163.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01308/0.8836, allocations: 8.272 MB / 0.7252 GB, free: 162.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.5e-05/0.8837, allocations: 53.39 kB / 0.7253 GB, free: 162.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.48e-05/0.8838, allocations: 62.91 kB / 0.7253 GB, free: 162.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002343/0.8861, allocations: 0.9995 MB / 0.7263 GB, free: 162.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003833/0.89, allocations: 1.258 MB / 0.7275 GB, free: 162.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009924/0.8999, allocations: 8.24 MB / 0.7356 GB, free: 158.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004648/0.9046, allocations: 354.6 kB / 0.7359 GB, free: 158.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005219/0.9051, allocations: 268.7 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.004948/0.9101, allocations: 2.905 MB / 0.739 GB, free: 157.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006989/0.9108, allocations: 387.6 kB / 0.7394 GB, free: 157.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008542/0.9193, allocations: 6.177 MB / 0.7454 GB, free: 154.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/0.9194, allocations: 40.5 kB / 0.7455 GB, free: 154.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.394e-05/0.9194, allocations: 12.12 kB / 0.7455 GB, free: 154.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.905e-05/0.9194, allocations: 25.05 kB / 0.7455 GB, free: 154.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01885/0.9383, allocations: 14.93 MB / 0.7601 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.9383, allocations: 4 kB / 0.7601 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002395/0.9407, allocations: 0.683 MB / 0.7607 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002186/0.9429, allocations: 0.8803 MB / 0.7616 GB, free: 142.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000246/0.9432, allocations: 83.66 kB / 0.7617 GB, free: 142.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008325/0.9515, allocations: 7.192 MB / 0.7687 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.9516, allocations: 12.91 kB / 0.7687 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0115/0.9631, allocations: 8.764 MB / 0.7773 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002344/0.9654, allocations: 0.91 MB / 0.7782 GB, free: 125.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000763/0.9662, allocations: 80 kB / 0.7782 GB, free: 125.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001982/0.9682, allocations: 199.7 kB / 0.7784 GB, free: 125.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005325/0.9687, allocations: 271.1 kB / 0.7787 GB, free: 125.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001985/0.9689, allocations: 115.9 kB / 0.7788 GB, free: 125.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00293/0.9719, allocations: 2.363 MB / 0.7811 GB, free: 122.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.9719, allocations: 0 / 0.7811 GB, free: 122.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00471/0.9766, allocations: 1.454 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.01058/0.9872, allocations: 9.499 MB / 0.7918 GB, free: 111.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008352/0.9956, allocations: 6.457 MB / 0.7981 GB, free: 105.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.012e-06/0.9956, allocations: 0 / 0.7981 GB, free: 105.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003985/0.9996, allocations: 3.079 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.003772/1.003, allocations: 0.7806 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.1006/1.104, allocations: 59.46 MB / 0.8599 GB, free: 37.28 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003928/1.108, allocations: 5.008 MB / 0.8648 GB, free: 32.23 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004298/1.112, allocations: 1.594 MB / 0.8664 GB, free: 30.63 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003232/1.116, allocations: 2.756 MB / 0.8691 GB, free: 27.87 MB / 494.1 MB Notification: Performance of SimCode: time 6.21e-07/1.116, allocations: 0 / 0.8691 GB, free: 27.87 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.287/1.403, allocations: 111.1 MB / 0.9775 GB, free: 99.39 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001491/1.403, allocations: 221.2 kB / 0.9777 GB, free: 99.14 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.665/5.068, allocations: 0 / 0.9777 GB, free: 99.14 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)