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.006052/0.006052, allocations: 102.2 kB / 15.73 MB, free: 6.008 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.399/1.399, allocations: 222.9 MB / 239.4 MB, free: 4.512 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.002487/0.002486, allocations: 192.5 kB / 289.7 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03634/0.03634, allocations: 8.797 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 75.88 kB / 463.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.111, allocations: 51.55 MB / 0.503 GB, free: 9.938 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02698/0.138, allocations: 25.45 MB / 0.5278 GB, free: 380 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3006/0.4387, allocations: 7.932 MB / 0.5356 GB, free: 4.344 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006357/0.4451, allocations: 173.8 kB / 0.5357 GB, free: 4.344 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01874/0.4639, allocations: 7.651 MB / 0.5432 GB, free: 3.477 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01332/0.4773, allocations: 3.057 MB / 0.5462 GB, free: 2.609 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007704/0.485, allocations: 1.999 MB / 0.5481 GB, free: 2.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01692/0.5019, allocations: 9.233 MB / 0.5571 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03232/0.5343, allocations: 17.27 MB / 0.574 GB, free: 5.898 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01091/0.5453, allocations: 4.75 MB / 0.5787 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01062/0.5559, allocations: 5.23 MB / 0.5838 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004503/0.5605, allocations: 1.355 MB / 0.5851 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006714/0.5672, allocations: 1.719 MB / 0.5868 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004712/0.572, allocations: 2.671 MB / 0.5894 GB, free: 6.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01023/0.5822, allocations: 5.083 MB / 0.5943 GB, free: 1.418 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02464/0.6069, allocations: 18.15 MB / 0.6121 GB, free: 15.59 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.607, allocations: 3.938 kB / 0.6121 GB, free: 15.58 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.607, allocations: 0 / 0.6121 GB, free: 15.58 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005704/0.6076, allocations: 4 kB / 0.6121 GB, free: 15.58 MB / 430.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.03826/0.6459, allocations: 10.75 MB / 0.6226 GB, free: 4.824 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.329e-05/0.6459, allocations: 16.02 kB / 0.6226 GB, free: 4.809 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006127/0.6521, allocations: 1.262 MB / 0.6238 GB, free: 3.547 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03391/0.686, allocations: 5.676 MB / 0.6294 GB, free: 13.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01602/0.7021, allocations: 5.807 MB / 0.635 GB, free: 8.098 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007209/0.7029, allocations: 0.5764 MB / 0.6356 GB, free: 7.531 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00384/0.7067, allocations: 0.7615 MB / 0.6363 GB, free: 6.781 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03812/0.7449, allocations: 12.77 MB / 0.6488 GB, free: 9.988 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000487/0.7454, allocations: 19.89 kB / 0.6488 GB, free: 9.969 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003141/0.7486, allocations: 323.4 kB / 0.6491 GB, free: 9.664 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006383/0.7492, allocations: 0.4928 MB / 0.6496 GB, free: 9.168 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0292/0.7785, allocations: 12.26 MB / 0.6616 GB, free: 12.89 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08286/0.8614, allocations: 43.26 MB / 0.7038 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02543/0.8868, allocations: 25.19 MB / 0.7284 GB, free: 4.445 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005253/0.8921, allocations: 2.976 MB / 0.7313 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005188/0.8926, allocations: 244.6 kB / 0.7316 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4692/1.362, allocations: 2.577 MB / 0.7341 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 6.813e-06/1.362, allocations: 0 / 0.7341 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.03988/1.402, allocations: 18.12 MB / 0.7518 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/1.402, allocations: 352.4 kB / 0.7521 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006768/1.409, allocations: 3.525 MB / 0.7556 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008548/1.41, allocations: 87.92 kB / 0.7556 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00208/1.412, allocations: 3.379 MB / 0.7589 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001466/1.413, allocations: 1.352 MB / 0.7603 GB, free: 155.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001758/1.415, allocations: 1.085 MB / 0.7613 GB, free: 155.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.384e-05/1.415, allocations: 306.6 kB / 0.7616 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004087/1.419, allocations: 2.553 MB / 0.7641 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004973/1.424, allocations: 4.504 MB / 0.7685 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008741/1.433, allocations: 7.459 MB / 0.7758 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001058/1.433, allocations: 15.81 kB / 0.7758 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01585/1.449, allocations: 8.273 MB / 0.7839 GB, free: 142 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001456/1.449, allocations: 60.48 kB / 0.7839 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001487/1.449, allocations: 61 kB / 0.784 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00304/1.452, allocations: 0.9977 MB / 0.785 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005008/1.457, allocations: 1.257 MB / 0.7862 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01316/1.47, allocations: 8.809 MB / 0.7948 GB, free: 136.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006213/1.477, allocations: 353.2 kB / 0.7951 GB, free: 136.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001567/1.478, allocations: 275.5 kB / 0.7954 GB, free: 135.8 MB / 0.5294 GB 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.008682/1.487, allocations: 2.896 MB / 0.7982 GB, free: 133.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002375/1.49, allocations: 391.1 kB / 0.7986 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01249/1.502, allocations: 6.178 MB / 0.8046 GB, free: 126.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.081e-05/1.502, allocations: 42.19 kB / 0.8047 GB, free: 126.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.917e-05/1.502, allocations: 12.92 kB / 0.8047 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.747e-05/1.502, allocations: 23.92 kB / 0.8047 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02786/1.53, allocations: 14.64 MB / 0.819 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.938e-05/1.53, allocations: 4 kB / 0.819 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002706/1.533, allocations: 0.6826 MB / 0.8197 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002543/1.535, allocations: 0.8774 MB / 0.8205 GB, free: 110.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005604/1.536, allocations: 90.09 kB / 0.8206 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01071/1.547, allocations: 7.738 MB / 0.8282 GB, free: 102.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.814e-06/1.547, allocations: 4.094 kB / 0.8282 GB, free: 102.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01449/1.561, allocations: 8.797 MB / 0.8368 GB, free: 93.48 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002937/1.564, allocations: 0.91 MB / 0.8377 GB, free: 92.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001476/1.566, allocations: 72 kB / 0.8377 GB, free: 92.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003047/1.569, allocations: 199.8 kB / 0.8379 GB, free: 92.28 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007895/1.57, allocations: 271.1 kB / 0.8382 GB, free: 92.01 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003745/1.57, allocations: 116.6 kB / 0.8383 GB, free: 91.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004306/1.574, allocations: 2.359 MB / 0.8406 GB, free: 89.55 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.01e-07/1.574, allocations: 4 kB / 0.8406 GB, free: 89.54 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006308/1.581, allocations: 1.455 MB / 0.842 GB, free: 88.09 MB / 0.5294 GB 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.01175/1.592, allocations: 9.481 MB / 0.8513 GB, free: 78.48 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008698/1.601, allocations: 6.488 MB / 0.8576 GB, free: 71.98 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/1.601, allocations: 4.062 kB / 0.8576 GB, free: 71.98 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003965/1.605, allocations: 3.067 MB / 0.8606 GB, free: 68.88 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003762/1.609, allocations: 0.8227 MB / 0.8614 GB, free: 68.09 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06402/1.673, allocations: 48 MB / 0.9083 GB, free: 18 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004877/1.678, allocations: 5.008 MB / 0.9132 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003726/1.682, allocations: 1.59 MB / 0.9147 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003498/1.685, allocations: 2.753 MB / 0.9174 GB, free: 8.602 MB / 0.5294 GB Notification: Performance of SimCode: time 1.303e-06/1.685, allocations: 0 / 0.9174 GB, free: 8.602 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4059/2.091, allocations: 111.7 MB / 1.026 GB, free: 109.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.03/21.12, allocations: 16.27 kB / 1.027 GB, free: 109.7 MB / 0.545 GB (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)