Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",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.006256/0.006256, allocations: 103.6 kB / 15.74 MB, free: 6.445 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.459/1.459, allocations: 222.9 MB / 239.4 MB, free: 4.52 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.001489/0.001489, allocations: 188.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03705/0.03705, allocations: 8.792 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002297/0.002297, allocations: 79.88 kB / 463.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1135, allocations: 51.56 MB / 0.503 GB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02967/0.1432, allocations: 25.44 MB / 0.5278 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2537/0.397, allocations: 7.935 MB / 0.5356 GB, free: 4.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006974/0.404, allocations: 174.8 kB / 0.5357 GB, free: 4.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02049/0.4245, allocations: 7.647 MB / 0.5432 GB, free: 3.434 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01147/0.436, allocations: 3.051 MB / 0.5462 GB, free: 2.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006187/0.4422, allocations: 2.011 MB / 0.5481 GB, free: 2.379 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01436/0.4566, allocations: 9.226 MB / 0.5572 GB, free: 15.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03114/0.4878, allocations: 17.27 MB / 0.574 GB, free: 5.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01085/0.4987, allocations: 4.751 MB / 0.5787 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0114/0.5102, allocations: 5.234 MB / 0.5838 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00471/0.5149, allocations: 1.355 MB / 0.5851 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007163/0.5221, allocations: 1.722 MB / 0.5868 GB, free: 9.055 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005215/0.5274, allocations: 2.667 MB / 0.5894 GB, free: 6.422 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01276/0.5402, allocations: 5.086 MB / 0.5943 GB, free: 1.355 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02817/0.5684, allocations: 18.19 MB / 0.6121 GB, free: 15.49 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.078e-05/0.5685, allocations: 4 kB / 0.6121 GB, free: 15.48 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.5685, allocations: 0 / 0.6121 GB, free: 15.48 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005136/0.569, allocations: 4 kB / 0.6121 GB, free: 15.48 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.03577/0.6048, allocations: 10.94 MB / 0.6228 GB, free: 4.523 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.741e-05/0.6048, allocations: 12.03 kB / 0.6228 GB, free: 4.512 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005237/0.6101, allocations: 1.26 MB / 0.624 GB, free: 3.254 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03357/0.6437, allocations: 5.716 MB / 0.6296 GB, free: 13.6 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01372/0.6574, allocations: 5.831 MB / 0.6353 GB, free: 7.746 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007074/0.6582, allocations: 0.5784 MB / 0.6359 GB, free: 7.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003712/0.6619, allocations: 0.7605 MB / 0.6366 GB, free: 6.43 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0388/0.7007, allocations: 12.77 MB / 0.6491 GB, free: 9.633 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005428/0.7014, allocations: 11.94 kB / 0.6491 GB, free: 9.621 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003942/0.7053, allocations: 323.6 kB / 0.6494 GB, free: 9.316 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006994/0.706, allocations: 0.4967 MB / 0.6499 GB, free: 8.816 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02906/0.7351, allocations: 12.26 MB / 0.6619 GB, free: 12.54 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08668/0.8219, allocations: 43.36 MB / 0.7042 GB, free: 96 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02894/0.8509, allocations: 25.19 MB / 0.7288 GB, free: 4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005957/0.8569, allocations: 2.976 MB / 0.7317 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005547/0.8575, allocations: 247.2 kB / 0.732 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4291/1.287, allocations: 2.574 MB / 0.7345 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 7.614e-06/1.287, allocations: 0 / 0.7345 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04149/1.328, allocations: 18.42 MB / 0.7525 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/1.328, allocations: 356 kB / 0.7528 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006381/1.335, allocations: 3.525 MB / 0.7562 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006463/1.335, allocations: 92.33 kB / 0.7563 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00205/1.337, allocations: 3.501 MB / 0.7598 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001453/1.339, allocations: 1.423 MB / 0.7611 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001971/1.341, allocations: 1.089 MB / 0.7622 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.653e-05/1.341, allocations: 305.1 kB / 0.7625 GB, free: 155 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003752/1.345, allocations: 2.554 MB / 0.765 GB, free: 154 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004829/1.35, allocations: 4.507 MB / 0.7694 GB, free: 150.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008367/1.358, allocations: 7.454 MB / 0.7767 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.871e-05/1.358, allocations: 19.84 kB / 0.7767 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01316/1.371, allocations: 8.287 MB / 0.7848 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.869e-05/1.371, allocations: 58.03 kB / 0.7848 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000101/1.371, allocations: 66.81 kB / 0.7849 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002567/1.374, allocations: 0.9996 MB / 0.7859 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004285/1.378, allocations: 1.26 MB / 0.7871 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0109/1.389, allocations: 8.808 MB / 0.7957 GB, free: 136.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004921/1.394, allocations: 358.4 kB / 0.7961 GB, free: 135.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009915/1.395, allocations: 271.5 kB / 0.7963 GB, free: 135.6 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.006537/1.402, allocations: 2.902 MB / 0.7991 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001561/1.403, allocations: 409.4 kB / 0.7995 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009507/1.413, allocations: 6.172 MB / 0.8056 GB, free: 126.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.03e-05/1.413, allocations: 40 kB / 0.8056 GB, free: 126.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.538e-05/1.413, allocations: 12 kB / 0.8056 GB, free: 126.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.106e-05/1.413, allocations: 25.8 kB / 0.8056 GB, free: 126.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02388/1.437, allocations: 14.65 MB / 0.8199 GB, free: 111.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.779e-05/1.437, allocations: 4 kB / 0.82 GB, free: 111.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002738/1.44, allocations: 0.6871 MB / 0.8206 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002361/1.442, allocations: 0.8769 MB / 0.8215 GB, free: 110 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005551/1.443, allocations: 83.98 kB / 0.8216 GB, free: 109.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009067/1.452, allocations: 7.755 MB / 0.8291 GB, free: 102 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/1.452, allocations: 4 kB / 0.8291 GB, free: 102 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0126/1.464, allocations: 8.793 MB / 0.8377 GB, free: 93.09 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002586/1.467, allocations: 0.9369 MB / 0.8386 GB, free: 92.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009499/1.468, allocations: 83.84 kB / 0.8387 GB, free: 92.06 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002093/1.47, allocations: 195.8 kB / 0.8389 GB, free: 91.87 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005194/1.471, allocations: 271.1 kB / 0.8392 GB, free: 91.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002043/1.471, allocations: 116 kB / 0.8393 GB, free: 91.49 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002962/1.474, allocations: 2.359 MB / 0.8416 GB, free: 89.14 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/1.474, allocations: 0 / 0.8416 GB, free: 89.14 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005159/1.479, allocations: 1.457 MB / 0.843 GB, free: 87.68 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.01159/1.491, allocations: 9.512 MB / 0.8523 GB, free: 78.05 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01073/1.501, allocations: 6.492 MB / 0.8586 GB, free: 71.53 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.83e-05/1.501, allocations: 0 / 0.8586 GB, free: 71.53 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005805/1.507, allocations: 3.082 MB / 0.8616 GB, free: 68.42 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004707/1.512, allocations: 0.8186 MB / 0.8624 GB, free: 67.63 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07622/1.588, allocations: 48.23 MB / 0.9095 GB, free: 17.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005552/1.594, allocations: 5.008 MB / 0.9144 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004361/1.598, allocations: 1.594 MB / 0.916 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003866/1.602, allocations: 2.756 MB / 0.9187 GB, free: 7.895 MB / 0.5294 GB Notification: Performance of SimCode: time 6.91e-07/1.602, allocations: 3.938 kB / 0.9187 GB, free: 7.891 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4301/2.032, allocations: 111.7 MB / 1.028 GB, free: 107.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.12/21.15, allocations: 7.922 kB / 1.028 GB, free: 107.9 MB / 0.545 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3_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_VCurve3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)