Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",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.001223/0.001223, 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.29/1.29, allocations: 222.9 MB / 238.9 MB, free: 4.73 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.001449/0.001449, allocations: 188.5 kB / 289.1 MB, free: 2.484 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03451/0.03451, allocations: 8.786 MB / 348.1 MB, free: 4.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001574, allocations: 80.7 kB / 410.5 MB, free: 42.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07647/0.07807, allocations: 51.57 MB / 462.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.0237/0.1018, allocations: 25.02 MB / 487.1 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0132/0.115, allocations: 7.863 MB / 495 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003763/0.1188, allocations: 159.6 kB / 495.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01539/0.1342, allocations: 7.237 MB / 0.4906 GB, free: 6.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008559/0.1428, allocations: 2.793 MB / 0.4933 GB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004793/0.1476, allocations: 1.905 MB / 0.4952 GB, free: 1.621 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009958/0.1576, allocations: 9.381 MB / 0.5043 GB, free: 8.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01897/0.1766, allocations: 14.36 MB / 0.5184 GB, free: 9.719 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005248/0.1818, allocations: 4.077 MB / 0.5223 GB, free: 5.629 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006171/0.188, allocations: 4.986 MB / 0.5272 GB, free: 0.625 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1619/0.3499, allocations: 0.8582 MB / 0.528 GB, free: 23.58 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005438/0.3555, allocations: 1.212 MB / 0.5292 GB, free: 23.58 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003513/0.359, allocations: 2.165 MB / 0.5313 GB, free: 23.58 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008513/0.3675, allocations: 4.568 MB / 0.5358 GB, free: 23.01 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01884/0.3864, allocations: 17.72 MB / 0.5531 GB, free: 19.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3864, allocations: 0 / 0.5531 GB, free: 19.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3865, allocations: 0 / 0.5531 GB, free: 19.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004789/0.3869, allocations: 0 / 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.03855/0.4255, allocations: 10.8 MB / 0.5637 GB, free: 14.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.4256, allocations: 8.969 kB / 0.5637 GB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005962/0.4315, allocations: 1.271 MB / 0.5649 GB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03175/0.4633, allocations: 5.633 MB / 0.5704 GB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01378/0.4771, allocations: 5.666 MB / 0.5759 GB, free: 8.703 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006301/0.4778, allocations: 0.5838 MB / 0.5765 GB, free: 8.441 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004247/0.4821, allocations: 0.7668 MB / 0.5773 GB, free: 8.191 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02997/0.5121, allocations: 12.78 MB / 0.5897 GB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002372/0.5123, allocations: 12.41 kB / 0.5897 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002343/0.5147, allocations: 329 kB / 0.5901 GB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005094/0.5152, allocations: 0.489 MB / 0.5905 GB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02476/0.54, allocations: 12.25 MB / 0.6025 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06666/0.6067, allocations: 43.73 MB / 0.6452 GB, free: 4.672 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02063/0.6273, allocations: 25.17 MB / 0.6698 GB, free: 8.629 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004241/0.6316, allocations: 2.974 MB / 0.6727 GB, free: 5.648 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003534/0.632, allocations: 248 kB / 0.6729 GB, free: 5.383 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003841/0.6358, allocations: 2.578 MB / 0.6754 GB, free: 2.742 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 6.642e-06/0.6358, allocations: 4 kB / 0.6754 GB, free: 2.738 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.04014/0.676, allocations: 18.11 MB / 0.6931 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001518/0.6762, allocations: 359.5 kB / 0.6935 GB, free: 100 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004806/0.681, allocations: 3.519 MB / 0.6969 GB, free: 12.57 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003645/0.6814, allocations: 93.69 kB / 0.697 GB, free: 12.48 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001979/0.6834, allocations: 3.372 MB / 0.7003 GB, free: 9.082 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001103/0.6845, allocations: 1.354 MB / 0.7016 GB, free: 7.742 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001585/0.6861, allocations: 1.077 MB / 0.7027 GB, free: 6.656 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.6862, allocations: 313.1 kB / 0.703 GB, free: 6.348 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003857/0.6901, allocations: 2.552 MB / 0.7055 GB, free: 3.789 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1777/0.8677, allocations: 4.51 MB / 0.7099 GB, free: 166.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009608/0.8774, allocations: 7.45 MB / 0.7171 GB, free: 163.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.55e-05/0.8775, allocations: 17.22 kB / 0.7172 GB, free: 163.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01316/0.8906, allocations: 8.269 MB / 0.7252 GB, free: 163 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.694e-05/0.8907, allocations: 58.97 kB / 0.7253 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-05/0.8908, allocations: 58.75 kB / 0.7253 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002414/0.8932, allocations: 0.9992 MB / 0.7263 GB, free: 162.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003774/0.897, allocations: 1.262 MB / 0.7276 GB, free: 162.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009696/0.9067, allocations: 8.23 MB / 0.7356 GB, free: 159.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004041/0.9108, allocations: 363.3 kB / 0.7359 GB, free: 159 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004436/0.9112, allocations: 268.9 kB / 0.7362 GB, free: 158.9 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.003723/0.915, allocations: 2.9 MB / 0.739 GB, free: 157.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006323/0.9156, allocations: 383.5 kB / 0.7394 GB, free: 157.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008394/0.924, allocations: 6.179 MB / 0.7454 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-05/0.9241, allocations: 42.81 kB / 0.7455 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-05/0.9241, allocations: 11.89 kB / 0.7455 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.822e-05/0.9241, allocations: 22.81 kB / 0.7455 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01886/0.943, allocations: 14.93 MB / 0.7601 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.248e-05/0.943, allocations: 4 kB / 0.7601 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002364/0.9454, allocations: 0.6789 MB / 0.7607 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002114/0.9475, allocations: 0.8893 MB / 0.7616 GB, free: 142.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002104/0.9477, allocations: 79.47 kB / 0.7617 GB, free: 142.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008078/0.9558, allocations: 7.189 MB / 0.7687 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.9559, allocations: 4 kB / 0.7687 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01052/0.9664, allocations: 8.779 MB / 0.7773 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001693/0.9681, allocations: 0.907 MB / 0.7782 GB, free: 125.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005061/0.9686, allocations: 76 kB / 0.7782 GB, free: 125.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001765/0.9704, allocations: 199.7 kB / 0.7784 GB, free: 125.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004723/0.9709, allocations: 271.1 kB / 0.7787 GB, free: 125.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002083/0.9711, allocations: 119.9 kB / 0.7788 GB, free: 125.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002739/0.9738, allocations: 2.363 MB / 0.7811 GB, free: 122.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.9738, allocations: 0 / 0.7811 GB, free: 122.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003978/0.9778, allocations: 1.459 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.01022/0.988, allocations: 9.491 MB / 0.7918 GB, free: 111.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00788/0.9959, allocations: 6.46 MB / 0.7981 GB, free: 105.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.996, allocations: 0 / 0.7981 GB, free: 105.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003679/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.003292/1.003, allocations: 0.7809 MB / 0.8019 GB, free: 101.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08406/1.087, allocations: 59.45 MB / 0.8599 GB, free: 37.22 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005248/1.092, allocations: 5.008 MB / 0.8648 GB, free: 32.17 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004239/1.097, allocations: 1.594 MB / 0.8664 GB, free: 30.57 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003065/1.1, allocations: 2.749 MB / 0.8691 GB, free: 27.82 MB / 494.1 MB Notification: Performance of SimCode: time 1.253e-06/1.1, allocations: 0 / 0.8691 GB, free: 27.82 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2869/1.387, allocations: 111.1 MB / 0.9775 GB, free: 99.26 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001494/1.387, allocations: 223.9 kB / 0.9777 GB, free: 99 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.775/5.161, allocations: 0 / 0.9777 GB, free: 99 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)