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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007716/0.0007716, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9021/0.9021, allocations: 177.1 MB / 199.4 MB, free: 5.945 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 160.6 kB / 256 MB, free: 13.35 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.02301/0.02301, allocations: 6.66 MB / 319 MB, free: 26.78 MB / 266.7 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 445.5 MB, free: 37.59 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.537e-05/1.675e-05, allocations: 5.094 kB / 445.5 MB, free: 37.59 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.01261/0.01262, allocations: 22.02 MB / 467.5 MB, free: 15.46 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01231/0.02493, allocations: 7.707 MB / 475.2 MB, free: 7.727 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003981/0.02891, allocations: 203 kB / 475.4 MB, free: 7.527 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00822/0.03713, allocations: 7.554 MB / 482.9 MB, free: 15.95 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008683/0.04581, allocations: 3.17 MB / 486.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003249/0.04906, allocations: 2.019 MB / 488.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.009475/0.05854, allocations: 9.7 MB / 497.8 MB, free: 1.027 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01176/0.07029, allocations: 11.23 MB / 0.4971 GB, free: 5.664 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007512/0.07781, allocations: 7.141 MB / 0.5041 GB, free: 14.51 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004994/0.0828, allocations: 4.521 MB / 0.5085 GB, free: 9.98 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001518/0.08432, allocations: 1.352 MB / 0.5098 GB, free: 8.629 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002399/0.08672, allocations: 1.737 MB / 0.5115 GB, free: 6.891 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00187/0.08859, allocations: 2.731 MB / 0.5142 GB, free: 4.152 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003298/0.09188, allocations: 3.419 MB / 0.5175 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01392/0.1058, allocations: 18.48 MB / 0.5356 GB, free: 14.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1058, allocations: 0 / 0.5356 GB, free: 14.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1058, allocations: 3.938 kB / 0.5356 GB, free: 14.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003603/0.1062, allocations: 0 / 0.5356 GB, free: 14.2 MB / 410.7 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.01927/0.1254, allocations: 10.8 MB / 0.5461 GB, free: 3.312 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.1255, allocations: 8.031 kB / 0.5461 GB, free: 3.305 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002284/0.1278, allocations: 1.268 MB / 0.5474 GB, free: 2.027 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01595/0.1437, allocations: 5.676 MB / 0.5529 GB, free: 12.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009546/0.1533, allocations: 5.844 MB / 0.5586 GB, free: 6.426 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003167/0.1536, allocations: 0.582 MB / 0.5592 GB, free: 5.844 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001689/0.1553, allocations: 0.7655 MB / 0.5599 GB, free: 5.078 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3353/0.4906, allocations: 12.98 MB / 0.5726 GB, free: 103.8 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001231/0.4907, allocations: 9.859 kB / 0.5726 GB, free: 103.8 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005565/0.4913, allocations: 325.8 kB / 0.5729 GB, free: 103.5 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004161/0.4917, allocations: 0.496 MB / 0.5734 GB, free: 103.5 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01951/0.5112, allocations: 12.24 MB / 0.5854 GB, free: 97.13 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05057/0.5618, allocations: 38 MB / 0.6225 GB, free: 59.09 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01067/0.5724, allocations: 8.917 MB / 0.6312 GB, free: 51.18 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00326/0.5757, allocations: 2.71 MB / 0.6338 GB, free: 48.47 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003095/0.576, allocations: 98.97 kB / 0.6339 GB, free: 48.38 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002928/0.5789, allocations: 2.799 MB / 0.6367 GB, free: 45.46 MB / 426.8 MB Notification: Performance of pre-optimization done (n=391): time 7.033e-06/0.579, allocations: 0 / 0.6367 GB, free: 45.46 MB / 426.8 MB Notification: Performance of matching and sorting (n=397): time 0.02286/0.6018, allocations: 18.34 MB / 0.6546 GB, free: 27.38 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.915e-05/0.6019, allocations: 359.5 kB / 0.6549 GB, free: 26.95 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003473/0.6054, allocations: 3.643 MB / 0.6585 GB, free: 23.39 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004864/0.6058, allocations: 89.7 kB / 0.6586 GB, free: 23.3 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009568/0.6068, allocations: 3.487 MB / 0.662 GB, free: 19.91 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008319/0.6076, allocations: 1.401 MB / 0.6633 GB, free: 18.53 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001064/0.6087, allocations: 1.085 MB / 0.6644 GB, free: 17.43 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 3.602e-05/0.6087, allocations: 313 kB / 0.6647 GB, free: 17.12 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002428/0.6112, allocations: 2.581 MB / 0.6672 GB, free: 14.53 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002815/0.614, allocations: 4.721 MB / 0.6718 GB, free: 8.879 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006235/0.6202, allocations: 7.463 MB / 0.6791 GB, free: 0.543 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.899e-05/0.6203, allocations: 16 kB / 0.6791 GB, free: 0.5273 MB / 426.8 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01231/0.6326, allocations: 8.315 MB / 0.6872 GB, free: 8.176 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.242e-05/0.6327, allocations: 57.7 kB / 0.6873 GB, free: 8.113 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.512e-05/0.6327, allocations: 64 kB / 0.6874 GB, free: 8.051 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001841/0.6346, allocations: 1 MB / 0.6883 GB, free: 7.051 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003094/0.6377, allocations: 1.267 MB / 0.6896 GB, free: 5.781 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009223/0.6469, allocations: 8.568 MB / 0.6979 GB, free: 13.11 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003528/0.6504, allocations: 343.6 kB / 0.6983 GB, free: 12.77 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009626/0.6514, allocations: 271.9 kB / 0.6985 GB, free: 12.5 MB / 458.8 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.004918/0.6563, allocations: 2.91 MB / 0.7014 GB, free: 9.574 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001012/0.6573, allocations: 409.4 kB / 0.7018 GB, free: 9.172 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009036/0.6664, allocations: 6.173 MB / 0.7078 GB, free: 2.938 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.154e-05/0.6664, allocations: 40.19 kB / 0.7078 GB, free: 2.898 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-05/0.6664, allocations: 12 kB / 0.7078 GB, free: 2.887 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.906e-05/0.6665, allocations: 23.86 kB / 0.7079 GB, free: 2.863 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02224/0.6887, allocations: 13.98 MB / 0.7215 GB, free: 4.812 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/0.6887, allocations: 8 kB / 0.7215 GB, free: 4.805 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00164/0.6904, allocations: 0.6826 MB / 0.7222 GB, free: 4.121 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001659/0.692, allocations: 0.876 MB / 0.7231 GB, free: 3.242 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003888/0.6924, allocations: 87.97 kB / 0.7231 GB, free: 3.156 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007723/0.7001, allocations: 7.499 MB / 0.7305 GB, free: 11.55 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/0.7001, allocations: 8.031 kB / 0.7305 GB, free: 11.55 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01177/0.7119, allocations: 8.831 MB / 0.7391 GB, free: 2.574 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002313/0.7142, allocations: 0.8642 MB / 0.7399 GB, free: 1.707 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007998/0.715, allocations: 79.94 kB / 0.74 GB, free: 1.629 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001607/0.7166, allocations: 191.8 kB / 0.7402 GB, free: 1.441 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006015/0.7172, allocations: 295 kB / 0.7405 GB, free: 1.152 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001909/0.7174, allocations: 112 kB / 0.7406 GB, free: 1.043 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.003735/0.7212, allocations: 2.369 MB / 0.7429 GB, free: 14.68 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7212, allocations: 0 / 0.7429 GB, free: 14.68 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.005583/0.7267, allocations: 1.453 MB / 0.7443 GB, free: 13.23 MB / 0.4949 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.01244/0.7392, allocations: 9.548 MB / 0.7536 GB, free: 3.531 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.1732/0.9124, allocations: 6.276 MB / 0.7598 GB, free: 180.9 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/0.9124, allocations: 3.906 kB / 0.7598 GB, free: 180.9 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.004069/0.9165, allocations: 2.908 MB / 0.7626 GB, free: 180.6 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003116/0.9196, allocations: 0.8259 MB / 0.7634 GB, free: 180.3 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05943/0.979, allocations: 48.4 MB / 0.8107 GB, free: 139.1 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002991/0.982, allocations: 4.54 MB / 0.8151 GB, free: 134.5 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.002716/0.9847, allocations: 1.594 MB / 0.8167 GB, free: 132.9 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002028/0.9867, allocations: 2.773 MB / 0.8194 GB, free: 130.2 MB / 0.4949 GB Notification: Performance of SimCode: time 1.543e-06/0.9867, allocations: 0 / 0.8194 GB, free: 130.2 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1145/1.101, allocations: 115.6 MB / 0.9322 GB, free: 15.29 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/12.31, allocations: 7.203 kB / 0.9322 GB, free: 15.28 MB / 0.4949 GB " [Timeout remaining time 648] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.654201079159975] Failed to read output from testmodel.py, exit status != 0: 12.446325882337987 12.619716591 12.511802656 Calling exit ...