Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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.001324/0.001324, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.403/1.403, allocations: 230.6 MB / 252.7 MB, free: 8.082 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.001774/0.001774, allocations: 218.2 kB / 309.2 MB, free: 2.949 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.04103/0.04103, allocations: 8.913 MB / 374.6 MB, free: 1.734 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_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",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.002763/0.002763, allocations: 87.88 kB / 0.4892 GB, free: 7.148 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2818, allocations: 55.59 MB / 0.5435 GB, free: 26.72 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02037/0.3021, allocations: 22 MB / 0.565 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0153/0.3174, allocations: 7.697 MB / 0.5725 GB, free: 6.715 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007175/0.3246, allocations: 201.3 kB / 0.5727 GB, free: 6.656 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01805/0.3427, allocations: 7.166 MB / 0.5797 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01097/0.3536, allocations: 3.1 MB / 0.5827 GB, free: 388 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006999/0.3606, allocations: 2.005 MB / 0.5847 GB, free: 14.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01558/0.3762, allocations: 9.399 MB / 0.5938 GB, free: 9.051 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02362/0.3998, allocations: 11.18 MB / 0.6048 GB, free: 13.96 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009462/0.4093, allocations: 4.882 MB / 0.6095 GB, free: 9.062 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009037/0.4183, allocations: 5.056 MB / 0.6145 GB, free: 3.988 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003512/0.4218, allocations: 1.352 MB / 0.6158 GB, free: 2.637 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005353/0.4272, allocations: 1.718 MB / 0.6175 GB, free: 0.918 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003987/0.4312, allocations: 2.681 MB / 0.6201 GB, free: 14.23 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008554/0.4397, allocations: 3.95 MB / 0.6239 GB, free: 10.27 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02404/0.4638, allocations: 18.29 MB / 0.6418 GB, free: 7.914 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.4638, allocations: 0 / 0.6418 GB, free: 7.914 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4638, allocations: 0 / 0.6418 GB, free: 7.914 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004892/0.4643, allocations: 0 / 0.6418 GB, free: 7.914 MB / 446.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.03359/0.4979, allocations: 10.88 MB / 0.6524 GB, free: 12.95 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.4979, allocations: 12.03 kB / 0.6524 GB, free: 12.93 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004698/0.5026, allocations: 1.268 MB / 0.6537 GB, free: 11.66 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03218/0.5348, allocations: 5.672 MB / 0.6592 GB, free: 5.973 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01395/0.5488, allocations: 5.84 MB / 0.6649 GB, free: 72 kB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007319/0.5495, allocations: 0.582 MB / 0.6655 GB, free: 15.48 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003189/0.5527, allocations: 0.7616 MB / 0.6662 GB, free: 14.73 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03378/0.5865, allocations: 12.98 MB / 0.6789 GB, free: 1.645 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004065/0.5869, allocations: 15.91 kB / 0.6789 GB, free: 1.629 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002814/0.5897, allocations: 324 kB / 0.6792 GB, free: 1.312 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006605/0.5903, allocations: 0.4967 MB / 0.6797 GB, free: 0.8125 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02865/0.619, allocations: 12.24 MB / 0.6917 GB, free: 4.547 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.501/1.12, allocations: 37.99 MB / 0.7288 GB, free: 87.42 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0171/1.137, allocations: 8.91 MB / 0.7375 GB, free: 84.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00508/1.142, allocations: 2.72 MB / 0.7401 GB, free: 83.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004711/1.143, allocations: 99.06 kB / 0.7402 GB, free: 83.88 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004415/1.147, allocations: 2.789 MB / 0.7429 GB, free: 82.43 MB / 494.1 MB Notification: Performance of pre-optimization done (n=391): time 7.594e-06/1.147, allocations: 0 / 0.7429 GB, free: 82.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=397): time 0.03783/1.185, allocations: 18.35 MB / 0.7609 GB, free: 71.57 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/1.185, allocations: 353.1 kB / 0.7612 GB, free: 71.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004973/1.19, allocations: 3.646 MB / 0.7648 GB, free: 68.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007339/1.191, allocations: 85.7 kB / 0.7648 GB, free: 68.68 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001623/1.192, allocations: 3.502 MB / 0.7683 GB, free: 65.58 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001311/1.194, allocations: 1.42 MB / 0.7697 GB, free: 64.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001757/1.195, allocations: 1.104 MB / 0.7707 GB, free: 63.06 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.634e-05/1.195, allocations: 305.1 kB / 0.771 GB, free: 62.76 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002916/1.198, allocations: 2.581 MB / 0.7735 GB, free: 60.17 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003547/1.202, allocations: 4.717 MB / 0.7782 GB, free: 54.52 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006797/1.209, allocations: 7.471 MB / 0.7854 GB, free: 46.18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.905e-05/1.209, allocations: 16 kB / 0.7855 GB, free: 46.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01163/1.22, allocations: 8.315 MB / 0.7936 GB, free: 37.82 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.379e-05/1.22, allocations: 61.69 kB / 0.7936 GB, free: 37.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-05/1.22, allocations: 60.31 kB / 0.7937 GB, free: 37.69 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002294/1.223, allocations: 1 MB / 0.7947 GB, free: 36.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004057/1.227, allocations: 1.263 MB / 0.7959 GB, free: 35.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009836/1.237, allocations: 8.559 MB / 0.8043 GB, free: 26.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004184/1.241, allocations: 363.4 kB / 0.8046 GB, free: 26.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007716/1.242, allocations: 268 kB / 0.8049 GB, free: 26.14 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.004113/1.246, allocations: 2.895 MB / 0.8077 GB, free: 23.22 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001039/1.247, allocations: 405.4 kB / 0.8081 GB, free: 22.82 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009041/1.256, allocations: 6.177 MB / 0.8141 GB, free: 16.59 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.331e-05/1.256, allocations: 43.94 kB / 0.8142 GB, free: 16.55 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/1.256, allocations: 16 kB / 0.8142 GB, free: 16.53 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.102e-05/1.256, allocations: 19.92 kB / 0.8142 GB, free: 16.51 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02111/1.277, allocations: 13.97 MB / 0.8278 GB, free: 2.473 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.236e-05/1.277, allocations: 8.531 kB / 0.8278 GB, free: 2.465 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002326/1.279, allocations: 0.6904 MB / 0.8285 GB, free: 1.773 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002067/1.281, allocations: 0.8716 MB / 0.8294 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002233/1.282, allocations: 91.97 kB / 0.8295 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01133/1.293, allocations: 7.504 MB / 0.8368 GB, free: 9.188 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.858e-06/1.293, allocations: 12.03 kB / 0.8368 GB, free: 9.176 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01609/1.309, allocations: 8.843 MB / 0.8454 GB, free: 196 kB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002956/1.312, allocations: 0.8583 MB / 0.8463 GB, free: 15.33 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001013/1.313, allocations: 72 kB / 0.8463 GB, free: 15.26 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002109/1.315, allocations: 187.8 kB / 0.8465 GB, free: 15.07 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000607/1.316, allocations: 294.9 kB / 0.8468 GB, free: 14.79 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002351/1.316, allocations: 123.9 kB / 0.8469 GB, free: 14.67 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003985/1.32, allocations: 2.363 MB / 0.8492 GB, free: 12.31 MB / 0.5138 GB Notification: Performance of sort global known variables: time 8e-08/1.32, allocations: 0 / 0.8492 GB, free: 12.31 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005792/1.326, allocations: 1.457 MB / 0.8506 GB, free: 10.86 MB / 0.5138 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.01562/1.341, allocations: 9.558 MB / 0.86 GB, free: 1.156 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01229/1.354, allocations: 6.281 MB / 0.8661 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.646e-05/1.354, allocations: 4.375 kB / 0.8661 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005922/1.36, allocations: 2.916 MB / 0.869 GB, free: 7.891 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005116/1.365, allocations: 0.8072 MB / 0.8698 GB, free: 7.102 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08867/1.453, allocations: 48.36 MB / 0.917 GB, free: 4.605 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005447/1.459, allocations: 4.531 MB / 0.9214 GB, free: 24 kB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.218/1.677, allocations: 1.59 MB / 0.923 GB, free: 191.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004048/1.681, allocations: 2.771 MB / 0.9257 GB, free: 191.9 MB / 0.5763 GB Notification: Performance of SimCode: time 1.142e-06/1.681, allocations: 0 / 0.9257 GB, free: 191.9 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2052/1.886, allocations: 115.8 MB / 1.039 GB, free: 107.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.62/18.51, allocations: 7.5 kB / 1.039 GB, free: 107.2 MB / 0.5763 GB " [Timeout remaining time 641] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2_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_VCurve2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.37639514915645] Failed to read output from testmodel.py, exit status != 0: 18.677698677405715 18.687039898 18.22067936 Calling exit ...