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.005198/0.005198, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.391/1.391, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001458/0.001458, allocations: 184.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03479/0.03479, allocations: 8.792 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001665, allocations: 79.89 kB / 463.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1033, allocations: 51.56 MB / 0.5029 GB, free: 9.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02718/0.1305, allocations: 25.43 MB / 0.5278 GB, free: 420 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.236/0.3666, allocations: 7.927 MB / 0.5355 GB, free: 4.336 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005206/0.3719, allocations: 174.6 kB / 0.5357 GB, free: 4.336 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01728/0.3892, allocations: 7.69 MB / 0.5432 GB, free: 3.492 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01142/0.4006, allocations: 3.094 MB / 0.5462 GB, free: 2.637 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006457/0.4071, allocations: 2.024 MB / 0.5482 GB, free: 2.434 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01403/0.4211, allocations: 9.221 MB / 0.5572 GB, free: 14.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02866/0.4498, allocations: 17.27 MB / 0.5741 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009044/0.4589, allocations: 4.765 MB / 0.5787 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009459/0.4684, allocations: 5.233 MB / 0.5838 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004089/0.4726, allocations: 1.355 MB / 0.5851 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006451/0.479, allocations: 1.727 MB / 0.5868 GB, free: 8.938 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004463/0.4836, allocations: 2.664 MB / 0.5894 GB, free: 6.305 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01038/0.494, allocations: 5.083 MB / 0.5944 GB, free: 1.242 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02328/0.5173, allocations: 18.19 MB / 0.6122 GB, free: 15.37 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.278e-06/0.5173, allocations: 0 / 0.6122 GB, free: 15.37 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.779e-06/0.5174, allocations: 4 kB / 0.6122 GB, free: 15.36 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005353/0.5179, allocations: 7.938 kB / 0.6122 GB, free: 15.36 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.03597/0.5539, allocations: 10.94 MB / 0.6229 GB, free: 4.398 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.727e-05/0.554, allocations: 8.031 kB / 0.6229 GB, free: 4.391 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004791/0.5588, allocations: 1.267 MB / 0.6241 GB, free: 3.125 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03334/0.5921, allocations: 5.723 MB / 0.6297 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01254/0.6047, allocations: 5.823 MB / 0.6354 GB, free: 7.621 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005796/0.6053, allocations: 0.5732 MB / 0.6359 GB, free: 7.059 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003185/0.6085, allocations: 0.7718 MB / 0.6367 GB, free: 6.301 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03375/0.6423, allocations: 12.77 MB / 0.6492 GB, free: 9.508 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003647/0.6427, allocations: 15.95 kB / 0.6492 GB, free: 9.492 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003451/0.6462, allocations: 322.1 kB / 0.6495 GB, free: 9.191 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000628/0.6469, allocations: 0.4967 MB / 0.65 GB, free: 8.691 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02756/0.6744, allocations: 12.25 MB / 0.6619 GB, free: 12.42 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07307/0.7475, allocations: 43.37 MB / 0.7043 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02285/0.7704, allocations: 25.19 MB / 0.7289 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005123/0.7756, allocations: 2.972 MB / 0.7318 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004867/0.7761, allocations: 247.3 kB / 0.732 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5429/1.319, allocations: 2.577 MB / 0.7345 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.11e-05/1.319, allocations: 0 / 0.7345 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04796/1.367, allocations: 18.42 MB / 0.7525 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/1.367, allocations: 353.3 kB / 0.7529 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007986/1.375, allocations: 3.527 MB / 0.7563 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007836/1.376, allocations: 87.58 kB / 0.7564 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002486/1.379, allocations: 3.498 MB / 0.7598 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001741/1.38, allocations: 1.422 MB / 0.7612 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002295/1.383, allocations: 1.086 MB / 0.7623 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.803e-05/1.383, allocations: 309.1 kB / 0.7625 GB, free: 155 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004151/1.387, allocations: 2.553 MB / 0.765 GB, free: 154 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005607/1.393, allocations: 4.508 MB / 0.7694 GB, free: 150.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009262/1.402, allocations: 7.449 MB / 0.7767 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001202/1.402, allocations: 15.88 kB / 0.7767 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.0161/1.418, allocations: 8.297 MB / 0.7848 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.082e-05/1.418, allocations: 57.17 kB / 0.7849 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/1.418, allocations: 65.62 kB / 0.785 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002558/1.421, allocations: 0.9942 MB / 0.7859 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004759/1.426, allocations: 1.259 MB / 0.7872 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01129/1.437, allocations: 8.815 MB / 0.7958 GB, free: 136 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005013/1.442, allocations: 362.1 kB / 0.7961 GB, free: 135.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001056/1.443, allocations: 271.7 kB / 0.7964 GB, free: 135.5 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.00586/1.449, allocations: 2.901 MB / 0.7992 GB, free: 132.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001598/1.451, allocations: 413.4 kB / 0.7996 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01047/1.461, allocations: 6.17 MB / 0.8056 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.231e-05/1.461, allocations: 40 kB / 0.8057 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.851e-05/1.461, allocations: 12.94 kB / 0.8057 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-05/1.461, allocations: 19.92 kB / 0.8057 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02499/1.486, allocations: 14.66 MB / 0.82 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.959e-05/1.486, allocations: 4 kB / 0.82 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002739/1.489, allocations: 0.6826 MB / 0.8207 GB, free: 110.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002411/1.492, allocations: 0.8773 MB / 0.8215 GB, free: 109.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006339/1.492, allocations: 87.98 kB / 0.8216 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00928/1.502, allocations: 7.756 MB / 0.8292 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/1.502, allocations: 10.16 kB / 0.8292 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01355/1.515, allocations: 8.789 MB / 0.8378 GB, free: 92.97 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00263/1.518, allocations: 0.9356 MB / 0.8387 GB, free: 92.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001001/1.519, allocations: 72 kB / 0.8388 GB, free: 91.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002413/1.521, allocations: 199.8 kB / 0.839 GB, free: 91.75 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006514/1.522, allocations: 275 kB / 0.8392 GB, free: 91.48 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002293/1.522, allocations: 116 kB / 0.8393 GB, free: 91.37 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003424/1.526, allocations: 2.36 MB / 0.8416 GB, free: 89.02 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.21e-07/1.526, allocations: 0 / 0.8416 GB, free: 89.02 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006436/1.532, allocations: 1.457 MB / 0.8431 GB, free: 87.56 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.01366/1.546, allocations: 9.51 MB / 0.8523 GB, free: 77.93 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01065/1.556, allocations: 6.489 MB / 0.8587 GB, free: 71.42 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.241e-05/1.556, allocations: 0.5 kB / 0.8587 GB, free: 71.42 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005568/1.562, allocations: 3.086 MB / 0.8617 GB, free: 68.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005962/1.568, allocations: 0.8156 MB / 0.8625 GB, free: 67.52 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08258/1.651, allocations: 48.23 MB / 0.9096 GB, free: 17.18 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00573/1.656, allocations: 5.008 MB / 0.9145 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004482/1.661, allocations: 1.594 MB / 0.916 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004154/1.665, allocations: 2.753 MB / 0.9187 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of SimCode: time 1.082e-06/1.665, allocations: 0 / 0.9187 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4073/2.072, allocations: 111.7 MB / 1.028 GB, free: 107.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.19/21.27, allocations: 7.141 kB / 1.028 GB, free: 107.8 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)