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.006272/0.006272, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.358/1.358, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001927/0.001928, allocations: 188.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03575/0.03575, allocations: 8.796 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 75.88 kB / 463.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1084, allocations: 51.56 MB / 0.503 GB, free: 9.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.03069/0.1392, allocations: 25.45 MB / 0.5278 GB, free: 372 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2789/0.4182, allocations: 7.939 MB / 0.5356 GB, free: 4.367 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007952/0.4262, allocations: 171.4 kB / 0.5357 GB, free: 4.367 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01918/0.4454, allocations: 7.688 MB / 0.5432 GB, free: 3.508 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01452/0.46, allocations: 3.095 MB / 0.5463 GB, free: 2.652 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007192/0.4672, allocations: 2.014 MB / 0.5482 GB, free: 2.457 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01703/0.4842, allocations: 9.225 MB / 0.5572 GB, free: 14.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03774/0.522, allocations: 17.28 MB / 0.5741 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01152/0.5336, allocations: 4.762 MB / 0.5788 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01041/0.5441, allocations: 5.237 MB / 0.5839 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00495/0.5491, allocations: 1.355 MB / 0.5852 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00712/0.5563, allocations: 1.722 MB / 0.5869 GB, free: 8.969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005168/0.5615, allocations: 2.667 MB / 0.5895 GB, free: 6.336 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01189/0.5734, allocations: 5.09 MB / 0.5944 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02843/0.6019, allocations: 18.19 MB / 0.6122 GB, free: 15.39 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.602, allocations: 0 / 0.6122 GB, free: 15.39 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.428e-06/0.602, allocations: 0 / 0.6122 GB, free: 15.39 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005719/0.6026, allocations: 7.938 kB / 0.6122 GB, free: 15.39 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.04/0.6426, allocations: 10.94 MB / 0.6229 GB, free: 4.426 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.801e-05/0.6427, allocations: 8.031 kB / 0.6229 GB, free: 4.418 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006269/0.6489, allocations: 1.263 MB / 0.6241 GB, free: 3.156 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03331/0.6823, allocations: 5.719 MB / 0.6297 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01458/0.6969, allocations: 5.825 MB / 0.6354 GB, free: 7.652 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007868/0.6978, allocations: 0.58 MB / 0.636 GB, free: 7.082 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004202/0.702, allocations: 0.7645 MB / 0.6367 GB, free: 6.332 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03636/0.7384, allocations: 12.77 MB / 0.6492 GB, free: 9.535 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004776/0.7389, allocations: 11.95 kB / 0.6492 GB, free: 9.523 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002982/0.7419, allocations: 325 kB / 0.6495 GB, free: 9.219 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006772/0.7426, allocations: 0.5006 MB / 0.65 GB, free: 8.715 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0287/0.7713, allocations: 12.25 MB / 0.662 GB, free: 12.44 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08443/0.8558, allocations: 43.37 MB / 0.7043 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02619/0.8821, allocations: 25.19 MB / 0.7289 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005616/0.8877, allocations: 2.968 MB / 0.7318 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005995/0.8884, allocations: 243.5 kB / 0.7321 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.233/1.121, allocations: 2.58 MB / 0.7346 GB, free: 166 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 9.047e-06/1.121, allocations: 0 / 0.7346 GB, free: 166 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04593/1.167, allocations: 18.42 MB / 0.7526 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/1.168, allocations: 354.7 kB / 0.7529 GB, free: 161.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006049/1.174, allocations: 3.524 MB / 0.7563 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000824/1.175, allocations: 91.8 kB / 0.7564 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002713/1.177, allocations: 3.499 MB / 0.7598 GB, free: 157.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00174/1.179, allocations: 1.414 MB / 0.7612 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001847/1.181, allocations: 1.091 MB / 0.7623 GB, free: 156.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.789e-05/1.181, allocations: 310.3 kB / 0.7626 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003881/1.185, allocations: 2.554 MB / 0.7651 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004692/1.19, allocations: 4.51 MB / 0.7695 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00785/1.197, allocations: 7.45 MB / 0.7768 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-05/1.198, allocations: 19.38 kB / 0.7768 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01335/1.211, allocations: 8.288 MB / 0.7849 GB, free: 143 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.19e-05/1.211, allocations: 60.2 kB / 0.7849 GB, free: 143 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001302/1.211, allocations: 61.47 kB / 0.785 GB, free: 143 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002547/1.214, allocations: 1.004 MB / 0.786 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004346/1.218, allocations: 1.258 MB / 0.7872 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0105/1.229, allocations: 8.813 MB / 0.7958 GB, free: 137.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004432/1.233, allocations: 362.6 kB / 0.7962 GB, free: 136.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009067/1.234, allocations: 271.7 kB / 0.7964 GB, free: 136.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.004779/1.239, allocations: 2.901 MB / 0.7992 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0011/1.24, allocations: 405.4 kB / 0.7996 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008785/1.249, allocations: 6.181 MB / 0.8057 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.878e-05/1.249, allocations: 40 kB / 0.8057 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.638e-05/1.249, allocations: 8 kB / 0.8057 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.948e-05/1.249, allocations: 26.11 kB / 0.8057 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02288/1.272, allocations: 14.65 MB / 0.82 GB, free: 112.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.616e-05/1.272, allocations: 4 kB / 0.8201 GB, free: 112.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002497/1.274, allocations: 0.6787 MB / 0.8207 GB, free: 112.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002187/1.276, allocations: 0.8812 MB / 0.8216 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003835/1.277, allocations: 87.98 kB / 0.8217 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008718/1.286, allocations: 7.762 MB / 0.8292 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/1.286, allocations: 4 kB / 0.8292 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01215/1.298, allocations: 8.796 MB / 0.8378 GB, free: 94.27 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002531/1.3, allocations: 0.9278 MB / 0.8387 GB, free: 93.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001054/1.301, allocations: 79.98 kB / 0.8388 GB, free: 93.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002426/1.304, allocations: 195.8 kB / 0.839 GB, free: 93.05 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006521/1.305, allocations: 275.1 kB / 0.8393 GB, free: 92.78 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002189/1.305, allocations: 108 kB / 0.8394 GB, free: 92.68 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00358/1.308, allocations: 2.363 MB / 0.8417 GB, free: 90.32 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.193e-06/1.308, allocations: 0 / 0.8417 GB, free: 90.32 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006585/1.315, allocations: 1.457 MB / 0.8431 GB, free: 88.86 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.01209/1.327, allocations: 9.511 MB / 0.8524 GB, free: 79.23 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0106/1.338, allocations: 6.488 MB / 0.8587 GB, free: 72.72 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/1.338, allocations: 0 / 0.8587 GB, free: 72.72 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005534/1.343, allocations: 3.089 MB / 0.8617 GB, free: 69.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005231/1.349, allocations: 0.8218 MB / 0.8625 GB, free: 68.82 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09401/1.443, allocations: 48.23 MB / 0.9096 GB, free: 18.48 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008673/1.451, allocations: 5.005 MB / 0.9145 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005198/1.457, allocations: 1.59 MB / 0.9161 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004954/1.462, allocations: 2.745 MB / 0.9188 GB, free: 9.09 MB / 0.5294 GB Notification: Performance of SimCode: time 1.472e-06/1.462, allocations: 0 / 0.9188 GB, free: 9.09 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3981/1.86, allocations: 111.7 MB / 1.028 GB, free: 116.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.93/20.79, allocations: 11.86 kB / 1.028 GB, free: 116.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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4_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_VCurve4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)