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.001692/0.001692, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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 1.471/1.471, allocations: 230.6 MB / 252.7 MB, free: 14.27 MB / 206.1 MB " [Timeout remaining time 178] 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.001665/0.001665, allocations: 205.9 kB / 309.2 MB, free: 3.117 MB / 238.1 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.0672/0.0672, allocations: 8.926 MB / 374.6 MB, free: 6.582 MB / 302.1 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: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002625/0.002625, allocations: 97.73 kB / 0.4892 GB, free: 44.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08798/0.0906, allocations: 55.6 MB / 0.5435 GB, free: 5 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.248/0.3386, allocations: 21.99 MB / 0.565 GB, free: 9.332 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01437/0.353, allocations: 7.699 MB / 0.5725 GB, free: 9.219 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004975/0.3579, allocations: 208 kB / 0.5727 GB, free: 9.219 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01723/0.3752, allocations: 7.158 MB / 0.5797 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01057/0.3857, allocations: 3.099 MB / 0.5827 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005894/0.3916, allocations: 2 MB / 0.5847 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01212/0.4037, allocations: 9.404 MB / 0.5938 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02335/0.4271, allocations: 11.24 MB / 0.6048 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01003/0.4371, allocations: 4.887 MB / 0.6096 GB, free: 7.414 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01036/0.4475, allocations: 5.041 MB / 0.6145 GB, free: 4.156 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003687/0.4512, allocations: 1.354 MB / 0.6158 GB, free: 3.652 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006118/0.4573, allocations: 1.726 MB / 0.6175 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005017/0.4623, allocations: 2.673 MB / 0.6201 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009502/0.4718, allocations: 3.957 MB / 0.624 GB, free: 11.27 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0251/0.4969, allocations: 18.3 MB / 0.6419 GB, free: 8.922 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.4969, allocations: 0 / 0.6419 GB, free: 8.922 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4969, allocations: 0 / 0.6419 GB, free: 8.922 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005075/0.4974, allocations: 0 / 0.6419 GB, free: 8.922 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.0349/0.5323, allocations: 10.88 MB / 0.6525 GB, free: 13.96 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.431e-05/0.5324, allocations: 15.97 kB / 0.6525 GB, free: 13.94 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004981/0.5374, allocations: 1.268 MB / 0.6537 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03311/0.5705, allocations: 5.665 MB / 0.6593 GB, free: 6.988 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01467/0.5851, allocations: 5.84 MB / 0.665 GB, free: 1.086 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006555/0.5858, allocations: 0.578 MB / 0.6655 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003043/0.5888, allocations: 0.7694 MB / 0.6663 GB, free: 15.74 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03264/0.6215, allocations: 12.99 MB / 0.679 GB, free: 2.652 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002948/0.6218, allocations: 11.91 kB / 0.679 GB, free: 2.641 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00255/0.6243, allocations: 328 kB / 0.6793 GB, free: 2.32 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006563/0.625, allocations: 0.4967 MB / 0.6798 GB, free: 1.82 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02705/0.652, allocations: 12.23 MB / 0.6917 GB, free: 5.562 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07719/0.7292, allocations: 38 MB / 0.7288 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01841/0.7476, allocations: 8.907 MB / 0.7375 GB, free: 6.672 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005276/0.7529, allocations: 2.714 MB / 0.7402 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004563/0.7534, allocations: 107 kB / 0.7403 GB, free: 3.852 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005032/0.7584, allocations: 2.783 MB / 0.743 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=391): time 8.266e-06/0.7584, allocations: 0 / 0.743 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of matching and sorting (n=397): time 0.04429/0.8027, allocations: 18.34 MB / 0.7609 GB, free: 14.48 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002229/0.8029, allocations: 359.5 kB / 0.7613 GB, free: 14.06 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00666/0.8096, allocations: 3.647 MB / 0.7648 GB, free: 10.41 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000718/0.8103, allocations: 89.7 kB / 0.7649 GB, free: 10.31 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002904/0.8132, allocations: 3.503 MB / 0.7683 GB, free: 6.777 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00195/0.8152, allocations: 1.422 MB / 0.7697 GB, free: 5.344 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002284/0.8174, allocations: 1.097 MB / 0.7708 GB, free: 4.238 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.8176, allocations: 301.1 kB / 0.7711 GB, free: 3.941 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004448/0.822, allocations: 2.585 MB / 0.7736 GB, free: 1.344 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4135/1.236, allocations: 4.714 MB / 0.7782 GB, free: 163.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009454/1.245, allocations: 7.464 MB / 0.7855 GB, free: 160.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.022e-05/1.245, allocations: 20.34 kB / 0.7855 GB, free: 160.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01589/1.261, allocations: 8.316 MB / 0.7936 GB, free: 157.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.91e-05/1.261, allocations: 56.8 kB / 0.7937 GB, free: 157.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001326/1.261, allocations: 60.42 kB / 0.7937 GB, free: 157.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002716/1.264, allocations: 0.9992 MB / 0.7947 GB, free: 156.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004639/1.269, allocations: 1.264 MB / 0.7959 GB, free: 156.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01206/1.281, allocations: 8.551 MB / 0.8043 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004339/1.285, allocations: 358 kB / 0.8046 GB, free: 152.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008245/1.286, allocations: 275.2 kB / 0.8049 GB, free: 152 MB / 0.545 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.004826/1.291, allocations: 2.904 MB / 0.8077 GB, free: 150.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009002/1.292, allocations: 404.9 kB / 0.8081 GB, free: 150.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009262/1.301, allocations: 6.172 MB / 0.8142 GB, free: 148 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.989e-05/1.301, allocations: 38.38 kB / 0.8142 GB, free: 148 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.659e-05/1.301, allocations: 13.41 kB / 0.8142 GB, free: 148 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.164e-05/1.301, allocations: 21.92 kB / 0.8142 GB, free: 148 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02105/1.322, allocations: 13.98 MB / 0.8279 GB, free: 142.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/1.322, allocations: 3.094 kB / 0.8279 GB, free: 142.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002417/1.324, allocations: 0.6893 MB / 0.8285 GB, free: 142 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002167/1.327, allocations: 0.8724 MB / 0.8294 GB, free: 141.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003556/1.327, allocations: 91.78 kB / 0.8295 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00873/1.336, allocations: 7.513 MB / 0.8368 GB, free: 134.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/1.336, allocations: 12.03 kB / 0.8368 GB, free: 134.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01207/1.348, allocations: 8.846 MB / 0.8455 GB, free: 126.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002769/1.35, allocations: 0.8586 MB / 0.8463 GB, free: 125.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000926/1.351, allocations: 75.8 kB / 0.8464 GB, free: 125.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002363/1.354, allocations: 195.8 kB / 0.8466 GB, free: 125 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005346/1.354, allocations: 291 kB / 0.8469 GB, free: 124.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002336/1.354, allocations: 120 kB / 0.847 GB, free: 124.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003146/1.358, allocations: 2.363 MB / 0.8493 GB, free: 122.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/1.358, allocations: 0 / 0.8493 GB, free: 122.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005338/1.363, allocations: 1.457 MB / 0.8507 GB, free: 120.8 MB / 0.545 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.01284/1.376, allocations: 9.552 MB / 0.86 GB, free: 111.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009904/1.386, allocations: 6.276 MB / 0.8662 GB, free: 104.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/1.386, allocations: 2 kB / 0.8662 GB, free: 104.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005189/1.391, allocations: 2.912 MB / 0.869 GB, free: 101.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005477/1.396, allocations: 0.8309 MB / 0.8698 GB, free: 101 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08564/1.482, allocations: 48.35 MB / 0.917 GB, free: 50.57 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008178/1.49, allocations: 4.531 MB / 0.9215 GB, free: 45.98 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005078/1.495, allocations: 1.59 MB / 0.923 GB, free: 44.39 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00483/1.5, allocations: 2.772 MB / 0.9257 GB, free: 41.62 MB / 0.545 GB Notification: Performance of SimCode: time 1.713e-06/1.5, allocations: 0 / 0.9257 GB, free: 41.62 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.415/1.915, allocations: 115.8 MB / 1.039 GB, free: 176.9 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.54/18.45, allocations: 2.594 kB / 1.039 GB, free: 176.9 MB / 0.5763 GB " [Timeout remaining time 641] (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: 21.500908094923943] Failed to read output from testmodel.py, exit status != 0: 18.62862990098074 18.646308948 18.145710125 Calling exit ...