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.007455/0.007455, allocations: 97.23 kB / 15.73 MB, free: 6 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.523/1.523, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001521/0.001521, allocations: 184.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0389/0.0389, allocations: 8.792 MB / 348.7 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002556/0.002556, allocations: 79.86 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1185, allocations: 51.56 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.03235/0.1509, allocations: 25.44 MB / 0.5278 GB, free: 460 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2638/0.4148, allocations: 7.935 MB / 0.5355 GB, free: 4.348 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007111/0.422, allocations: 171.5 kB / 0.5357 GB, free: 4.348 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01982/0.4419, allocations: 7.643 MB / 0.5432 GB, free: 3.512 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01297/0.4549, allocations: 3.05 MB / 0.5461 GB, free: 2.648 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007364/0.4623, allocations: 2.009 MB / 0.5481 GB, free: 2.457 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01831/0.4806, allocations: 9.222 MB / 0.5571 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03544/0.5161, allocations: 17.28 MB / 0.574 GB, free: 5.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01103/0.5272, allocations: 4.745 MB / 0.5786 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01083/0.5381, allocations: 5.238 MB / 0.5837 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005161/0.5433, allocations: 1.352 MB / 0.585 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007871/0.5512, allocations: 1.72 MB / 0.5867 GB, free: 9.113 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00614/0.5574, allocations: 2.671 MB / 0.5893 GB, free: 6.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01348/0.571, allocations: 5.086 MB / 0.5943 GB, free: 1.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02874/0.5998, allocations: 18.19 MB / 0.6121 GB, free: 15.55 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.939e-06/0.5998, allocations: 0 / 0.6121 GB, free: 15.55 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5998, allocations: 3.938 kB / 0.6121 GB, free: 15.54 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005429/0.6004, allocations: 4 kB / 0.6121 GB, free: 15.54 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.03916/0.6396, allocations: 10.94 MB / 0.6228 GB, free: 4.578 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.103e-05/0.6396, allocations: 8.031 kB / 0.6228 GB, free: 4.57 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005588/0.6452, allocations: 1.264 MB / 0.624 GB, free: 3.309 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03473/0.68, allocations: 5.72 MB / 0.6296 GB, free: 13.65 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0151/0.6952, allocations: 5.821 MB / 0.6353 GB, free: 7.809 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007926/0.696, allocations: 0.5784 MB / 0.6358 GB, free: 7.242 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004028/0.7001, allocations: 0.7692 MB / 0.6366 GB, free: 6.484 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03923/0.7393, allocations: 12.78 MB / 0.6491 GB, free: 9.688 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005123/0.7399, allocations: 7.953 kB / 0.6491 GB, free: 9.68 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003681/0.7436, allocations: 331.1 kB / 0.6494 GB, free: 9.367 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007152/0.7443, allocations: 0.4928 MB / 0.6499 GB, free: 8.871 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03223/0.7766, allocations: 12.25 MB / 0.6618 GB, free: 12.6 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08661/0.8632, allocations: 43.37 MB / 0.7042 GB, free: 148 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02986/0.8931, allocations: 25.19 MB / 0.7288 GB, free: 4.055 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006189/0.8994, allocations: 2.968 MB / 0.7317 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006409/0.9001, allocations: 244.5 kB / 0.7319 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4508/1.351, allocations: 2.582 MB / 0.7344 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.507e-05/1.351, allocations: 0 / 0.7344 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.0537/1.405, allocations: 18.42 MB / 0.7524 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001614/1.405, allocations: 356.7 kB / 0.7528 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009809/1.415, allocations: 3.525 MB / 0.7562 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000828/1.416, allocations: 92.3 kB / 0.7563 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002933/1.419, allocations: 3.495 MB / 0.7597 GB, free: 157 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002033/1.421, allocations: 1.418 MB / 0.7611 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003232/1.424, allocations: 1.088 MB / 0.7621 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.873e-05/1.424, allocations: 306.4 kB / 0.7624 GB, free: 155.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005153/1.429, allocations: 2.558 MB / 0.7649 GB, free: 154.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006705/1.436, allocations: 4.503 MB / 0.7693 GB, free: 150.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/1.446, allocations: 7.459 MB / 0.7766 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.401e-05/1.446, allocations: 18.78 kB / 0.7766 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01787/1.464, allocations: 8.291 MB / 0.7847 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.091e-05/1.464, allocations: 56.61 kB / 0.7848 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001277/1.465, allocations: 59.12 kB / 0.7848 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002838/1.467, allocations: 0.9988 MB / 0.7858 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004753/1.472, allocations: 1.262 MB / 0.7871 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01171/1.484, allocations: 8.816 MB / 0.7957 GB, free: 136.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005261/1.489, allocations: 362.1 kB / 0.796 GB, free: 135.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001209/1.49, allocations: 271.8 kB / 0.7963 GB, free: 135.7 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.006459/1.497, allocations: 2.901 MB / 0.7991 GB, free: 133.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001515/1.498, allocations: 409.4 kB / 0.7995 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01144/1.51, allocations: 6.178 MB / 0.8055 GB, free: 126.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.6e-05/1.51, allocations: 40 kB / 0.8056 GB, free: 126.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.847e-05/1.51, allocations: 8 kB / 0.8056 GB, free: 126.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.342e-05/1.51, allocations: 23.92 kB / 0.8056 GB, free: 126.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02936/1.539, allocations: 14.66 MB / 0.8199 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-05/1.54, allocations: 4 kB / 0.8199 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003/1.543, allocations: 0.6787 MB / 0.8206 GB, free: 111 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002564/1.545, allocations: 0.8806 MB / 0.8214 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007672/1.546, allocations: 87.97 kB / 0.8215 GB, free: 110 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009863/1.556, allocations: 7.745 MB / 0.8291 GB, free: 102.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.684e-06/1.556, allocations: 9 kB / 0.8291 GB, free: 102.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0155/1.571, allocations: 8.8 MB / 0.8377 GB, free: 93.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003117/1.575, allocations: 0.9278 MB / 0.8386 GB, free: 92.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001604/1.576, allocations: 76 kB / 0.8387 GB, free: 92.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003228/1.579, allocations: 191.8 kB / 0.8388 GB, free: 91.99 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001079/1.581, allocations: 275.1 kB / 0.8391 GB, free: 91.72 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000423/1.581, allocations: 116 kB / 0.8392 GB, free: 91.61 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004608/1.586, allocations: 2.363 MB / 0.8415 GB, free: 89.25 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.31e-07/1.586, allocations: 0 / 0.8415 GB, free: 89.25 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008895/1.595, allocations: 1.453 MB / 0.8429 GB, free: 87.8 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.01518/1.61, allocations: 9.511 MB / 0.8522 GB, free: 78.17 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01127/1.621, allocations: 6.495 MB / 0.8586 GB, free: 71.65 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/1.621, allocations: 1 kB / 0.8586 GB, free: 71.65 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005444/1.627, allocations: 3.09 MB / 0.8616 GB, free: 68.53 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005125/1.632, allocations: 0.8115 MB / 0.8624 GB, free: 67.75 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08616/1.718, allocations: 48.23 MB / 0.9095 GB, free: 17.42 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009167/1.727, allocations: 5.005 MB / 0.9144 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005401/1.733, allocations: 1.586 MB / 0.9159 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005264/1.738, allocations: 2.753 MB / 0.9186 GB, free: 8.031 MB / 0.5294 GB Notification: Performance of SimCode: time 1.062e-06/1.738, allocations: 0 / 0.9186 GB, free: 8.031 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4197/2.158, allocations: 111.7 MB / 1.028 GB, free: 107.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.91/22.07, allocations: 14.88 kB / 1.028 GB, free: 107.6 MB / 0.545 GB (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)