Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",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.001267/0.001268, 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.286/1.286, 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.001214/0.001214, allocations: 180.5 kB / 289.1 MB, free: 2.512 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03301/0.03301, allocations: 8.795 MB / 348.1 MB, free: 4.887 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 80.22 kB / 410.5 MB, free: 42.45 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07196/0.07335, allocations: 51.56 MB / 462.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02175/0.09512, allocations: 25.02 MB / 487.1 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01362/0.1088, allocations: 7.871 MB / 495 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004295/0.1131, allocations: 167.5 kB / 495.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01597/0.1291, allocations: 7.229 MB / 0.4906 GB, free: 6.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00807/0.1372, allocations: 2.794 MB / 0.4933 GB, free: 3.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004674/0.1419, allocations: 1.901 MB / 0.4952 GB, free: 1.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01008/0.1519, allocations: 9.372 MB / 0.5043 GB, free: 8.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01851/0.1705, allocations: 14.37 MB / 0.5184 GB, free: 9.746 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005611/0.1761, allocations: 4.077 MB / 0.5223 GB, free: 5.656 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006646/0.1828, allocations: 4.982 MB / 0.5272 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1634/0.3462, allocations: 0.8559 MB / 0.528 GB, free: 23.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004113/0.3503, allocations: 1.213 MB / 0.5292 GB, free: 23.44 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002913/0.3533, allocations: 2.164 MB / 0.5313 GB, free: 23.44 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007571/0.3609, allocations: 4.569 MB / 0.5358 GB, free: 22.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01828/0.3792, allocations: 17.72 MB / 0.5531 GB, free: 19.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.3792, allocations: 0 / 0.5531 GB, free: 19.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.3792, allocations: 2.906 kB / 0.5531 GB, free: 19.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004602/0.3797, allocations: 0 / 0.5531 GB, free: 19.12 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.03072/0.4104, allocations: 10.8 MB / 0.5636 GB, free: 14.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.4105, allocations: 9.969 kB / 0.5637 GB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002872/0.4134, allocations: 1.266 MB / 0.5649 GB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02957/0.443, allocations: 5.644 MB / 0.5704 GB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01159/0.4546, allocations: 5.663 MB / 0.5759 GB, free: 8.629 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000337/0.4549, allocations: 0.5832 MB / 0.5765 GB, free: 8.367 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002559/0.4575, allocations: 0.7671 MB / 0.5773 GB, free: 8.117 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02144/0.479, allocations: 12.78 MB / 0.5897 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001629/0.4791, allocations: 11.89 kB / 0.5897 GB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001075/0.4802, allocations: 321.1 kB / 0.59 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000466/0.4807, allocations: 0.4929 MB / 0.5905 GB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02467/0.5054, allocations: 12.25 MB / 0.6025 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07059/0.576, allocations: 43.73 MB / 0.6452 GB, free: 4.688 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02137/0.5974, allocations: 25.18 MB / 0.6698 GB, free: 8.633 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004842/0.6023, allocations: 2.974 MB / 0.6727 GB, free: 5.652 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004054/0.6027, allocations: 239 kB / 0.6729 GB, free: 5.395 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003909/0.6066, allocations: 2.585 MB / 0.6754 GB, free: 2.746 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 5.971e-06/0.6066, allocations: 0 / 0.6754 GB, free: 2.746 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.0354/0.642, allocations: 18.11 MB / 0.6931 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/0.6422, allocations: 355.5 kB / 0.6935 GB, free: 112 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004793/0.647, allocations: 3.518 MB / 0.6969 GB, free: 12.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004767/0.6475, allocations: 89.7 kB / 0.697 GB, free: 12.49 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001946/0.6494, allocations: 3.386 MB / 0.7003 GB, free: 9.086 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001314/0.6508, allocations: 1.343 MB / 0.7016 GB, free: 7.754 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001642/0.6524, allocations: 1.084 MB / 0.7027 GB, free: 6.66 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.088e-05/0.6525, allocations: 305.1 kB / 0.703 GB, free: 6.359 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003691/0.6562, allocations: 2.549 MB / 0.7054 GB, free: 3.805 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1813/0.8375, allocations: 4.517 MB / 0.7099 GB, free: 166 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008745/0.8463, allocations: 7.449 MB / 0.7171 GB, free: 163.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.571e-05/0.8464, allocations: 17.28 kB / 0.7172 GB, free: 163.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01392/0.8603, allocations: 8.268 MB / 0.7252 GB, free: 162.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.834e-05/0.8604, allocations: 60.23 kB / 0.7253 GB, free: 162.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-05/0.8605, allocations: 59.16 kB / 0.7253 GB, free: 162.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002475/0.863, allocations: 1 MB / 0.7263 GB, free: 162.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004165/0.8672, allocations: 1.256 MB / 0.7275 GB, free: 162.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/0.8773, allocations: 8.239 MB / 0.7356 GB, free: 158.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004486/0.8818, allocations: 361.8 kB / 0.7359 GB, free: 158.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008238/0.8826, allocations: 264.9 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.00426/0.8869, allocations: 2.901 MB / 0.739 GB, free: 157.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007721/0.8877, allocations: 386.5 kB / 0.7394 GB, free: 157.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00879/0.8965, allocations: 6.189 MB / 0.7454 GB, free: 154.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-05/0.8965, allocations: 42.28 kB / 0.7455 GB, free: 154.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.8965, allocations: 7.25 kB / 0.7455 GB, free: 154.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.223e-05/0.8966, allocations: 22.84 kB / 0.7455 GB, free: 154.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02169/0.9183, allocations: 14.92 MB / 0.7601 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-05/0.9183, allocations: 9.219 kB / 0.7601 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002395/0.9207, allocations: 0.6821 MB / 0.7607 GB, free: 143 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002198/0.9229, allocations: 0.8785 MB / 0.7616 GB, free: 142.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002829/0.9232, allocations: 86.75 kB / 0.7617 GB, free: 142.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008277/0.9315, allocations: 7.194 MB / 0.7687 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.9315, allocations: 11.94 kB / 0.7687 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01155/0.9431, allocations: 8.765 MB / 0.7773 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00199/0.9451, allocations: 0.9101 MB / 0.7782 GB, free: 125.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006307/0.9458, allocations: 79.98 kB / 0.7782 GB, free: 125.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00191/0.9477, allocations: 196.5 kB / 0.7784 GB, free: 125.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005191/0.9482, allocations: 275.1 kB / 0.7787 GB, free: 125.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002021/0.9484, allocations: 116.8 kB / 0.7788 GB, free: 125.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002892/0.9513, allocations: 2.363 MB / 0.7811 GB, free: 122.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9513, allocations: 0 / 0.7811 GB, free: 122.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004564/0.9559, allocations: 1.455 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.01087/0.9668, allocations: 9.488 MB / 0.7918 GB, free: 111.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009093/0.9759, allocations: 6.459 MB / 0.7981 GB, free: 105.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/0.9759, allocations: 5.328 kB / 0.7981 GB, free: 105.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004468/0.9804, allocations: 3.084 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.004713/0.9852, allocations: 0.7764 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.09406/1.079, allocations: 59.46 MB / 0.8599 GB, free: 37.22 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006174/1.085, allocations: 5.005 MB / 0.8648 GB, free: 32.17 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004774/1.09, allocations: 1.586 MB / 0.8664 GB, free: 30.58 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003993/1.094, allocations: 2.753 MB / 0.8691 GB, free: 27.83 MB / 494.1 MB Notification: Performance of SimCode: time 1.052e-06/1.094, allocations: 0 / 0.8691 GB, free: 27.83 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2747/1.369, allocations: 111.1 MB / 0.9775 GB, free: 99.3 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001604/1.369, allocations: 220.4 kB / 0.9777 GB, free: 99.05 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.669/5.038, allocations: 3.938 kB / 0.9777 GB, free: 99.05 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)