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.001483/0.001483, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 239.3 MB, free: 4.594 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.001536/0.001536, allocations: 188.5 kB / 289.6 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0358/0.0358, allocations: 8.793 MB / 348.5 MB, free: 4.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002809/0.002809, allocations: 81.62 kB / 411.2 MB, free: 42.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1105, allocations: 51.56 MB / 462.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02639/0.1369, allocations: 25.44 MB / 488.2 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01653/0.1535, allocations: 7.94 MB / 496.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004824/0.1584, allocations: 171.6 kB / 496.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01706/0.1754, allocations: 7.643 MB / 0.4921 GB, free: 4.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009833/0.1853, allocations: 3.049 MB / 0.4951 GB, free: 1.871 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005939/0.1913, allocations: 2.021 MB / 0.4971 GB, free: 15.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01328/0.2045, allocations: 9.156 MB / 0.506 GB, free: 6.672 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0282/0.2328, allocations: 17.33 MB / 0.5229 GB, free: 5.191 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007277/0.2401, allocations: 4.734 MB / 0.5276 GB, free: 456 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2044/0.4446, allocations: 5.262 MB / 0.5327 GB, free: 23.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006025/0.4507, allocations: 1.354 MB / 0.534 GB, free: 23.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007642/0.4584, allocations: 1.727 MB / 0.5357 GB, free: 23.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005128/0.4635, allocations: 2.678 MB / 0.5383 GB, free: 22.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01285/0.4764, allocations: 5.084 MB / 0.5433 GB, free: 21.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01985/0.4963, allocations: 18.06 MB / 0.5609 GB, free: 16.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.4963, allocations: 0.75 kB / 0.5609 GB, free: 16.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4963, allocations: 0 / 0.5609 GB, free: 16.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004943/0.4968, allocations: 0.5 kB / 0.5609 GB, free: 16.5 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.03974/0.5366, allocations: 10.8 MB / 0.5715 GB, free: 9.715 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.5367, allocations: 9.438 kB / 0.5715 GB, free: 9.715 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006028/0.5427, allocations: 1.269 MB / 0.5727 GB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0327/0.5754, allocations: 5.64 MB / 0.5782 GB, free: 6.367 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01277/0.5882, allocations: 5.669 MB / 0.5838 GB, free: 2.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005322/0.5888, allocations: 0.5824 MB / 0.5843 GB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00362/0.5924, allocations: 0.765 MB / 0.5851 GB, free: 1.953 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03224/0.6247, allocations: 12.77 MB / 0.5976 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000224/0.625, allocations: 11.91 kB / 0.5976 GB, free: 5.125 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001399/0.6264, allocations: 329.8 kB / 0.5979 GB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005163/0.6269, allocations: 0.4929 MB / 0.5984 GB, free: 4.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02825/0.6551, allocations: 12.24 MB / 0.6103 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08083/0.736, allocations: 43.72 MB / 0.653 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02622/0.7623, allocations: 25.19 MB / 0.6776 GB, free: 15.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005962/0.7683, allocations: 2.971 MB / 0.6805 GB, free: 12.72 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005754/0.7689, allocations: 241.3 kB / 0.6807 GB, free: 12.46 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005705/0.7746, allocations: 2.582 MB / 0.6833 GB, free: 9.812 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 1.645e-05/0.7747, allocations: 0 / 0.6833 GB, free: 9.812 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.0483/0.823, allocations: 18.12 MB / 0.701 GB, free: 7.594 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002343/0.8233, allocations: 355.5 kB / 0.7013 GB, free: 7.172 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006444/0.8297, allocations: 3.526 MB / 0.7047 GB, free: 3.641 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000726/0.8305, allocations: 89.7 kB / 0.7048 GB, free: 3.547 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00229/0.8328, allocations: 3.369 MB / 0.7081 GB, free: 160 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.217/1.05, allocations: 1.346 MB / 0.7094 GB, free: 167 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002097/1.052, allocations: 1.083 MB / 0.7105 GB, free: 166.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.692e-05/1.052, allocations: 307.3 kB / 0.7108 GB, free: 166.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003676/1.056, allocations: 2.549 MB / 0.7133 GB, free: 166.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005061/1.061, allocations: 4.511 MB / 0.7177 GB, free: 164.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01088/1.072, allocations: 7.448 MB / 0.725 GB, free: 161.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.202e-05/1.072, allocations: 16.72 kB / 0.725 GB, free: 161.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01393/1.086, allocations: 8.281 MB / 0.7331 GB, free: 159.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.008e-05/1.086, allocations: 59.28 kB / 0.7331 GB, free: 159.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.652e-05/1.086, allocations: 59.19 kB / 0.7332 GB, free: 159.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002542/1.088, allocations: 1.007 MB / 0.7342 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003933/1.092, allocations: 1.266 MB / 0.7354 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01089/1.103, allocations: 8.82 MB / 0.744 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004501/1.108, allocations: 359.9 kB / 0.7443 GB, free: 154.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005098/1.108, allocations: 271.9 kB / 0.7446 GB, free: 154.2 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.004763/1.113, allocations: 2.902 MB / 0.7474 GB, free: 152.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007808/1.114, allocations: 383.1 kB / 0.7478 GB, free: 152.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009132/1.123, allocations: 6.182 MB / 0.7538 GB, free: 149.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.628e-05/1.123, allocations: 40 kB / 0.7539 GB, free: 149.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/1.123, allocations: 15.64 kB / 0.7539 GB, free: 149.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-05/1.123, allocations: 31.34 kB / 0.7539 GB, free: 149.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02674/1.15, allocations: 14.91 MB / 0.7685 GB, free: 136.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/1.15, allocations: 8 kB / 0.7685 GB, free: 136.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002411/1.152, allocations: 0.6828 MB / 0.7692 GB, free: 136.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002337/1.155, allocations: 0.882 MB / 0.77 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002249/1.155, allocations: 83.98 kB / 0.7701 GB, free: 135.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009117/1.164, allocations: 7.754 MB / 0.7777 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/1.164, allocations: 7.938 kB / 0.7777 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01115/1.175, allocations: 8.777 MB / 0.7863 GB, free: 118.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002216/1.177, allocations: 0.9067 MB / 0.7871 GB, free: 117.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006708/1.178, allocations: 82.3 kB / 0.7872 GB, free: 117.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001979/1.18, allocations: 199.8 kB / 0.7874 GB, free: 117.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005379/1.181, allocations: 271.1 kB / 0.7877 GB, free: 117 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001922/1.181, allocations: 112 kB / 0.7878 GB, free: 116.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003287/1.184, allocations: 2.367 MB / 0.7901 GB, free: 114.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.184, allocations: 0 / 0.7901 GB, free: 114.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006043/1.19, allocations: 1.449 MB / 0.7915 GB, free: 113.1 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.0112/1.201, allocations: 9.497 MB / 0.8008 GB, free: 103.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02475/1.226, allocations: 11.91 MB / 0.8124 GB, free: 91.61 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.647e-06/1.226, allocations: 0 / 0.8124 GB, free: 91.61 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004552/1.231, allocations: 3.082 MB / 0.8154 GB, free: 88.51 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00432/1.235, allocations: 0.8141 MB / 0.8162 GB, free: 87.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0736/1.309, allocations: 56.25 MB / 0.8711 GB, free: 26.84 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004441/1.313, allocations: 5.009 MB / 0.876 GB, free: 21.79 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004687/1.318, allocations: 1.59 MB / 0.8776 GB, free: 20.19 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004063/1.322, allocations: 2.753 MB / 0.8803 GB, free: 17.44 MB / 494.1 MB Notification: Performance of SimCode: time 1.002e-06/1.322, allocations: 0 / 0.8803 GB, free: 17.44 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3717/1.694, allocations: 113.5 MB / 0.9911 GB, free: 87.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/13.48, allocations: 10.98 kB / 0.9911 GB, free: 87.79 MB / 494.1 MB (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)