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.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.001326/0.001326, 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.394/1.394, allocations: 230.6 MB / 252.7 MB, free: 8.078 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.001524/0.001524, allocations: 221.8 kB / 309.2 MB, free: 2.945 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.04022/0.04022, allocations: 8.918 MB / 374.6 MB, free: 1.727 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_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"}) [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.002539/0.002539, allocations: 83.86 kB / 0.4892 GB, free: 7.156 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.264, allocations: 55.59 MB / 0.5435 GB, free: 26.7 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.01792/0.2819, allocations: 22.01 MB / 0.565 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01468/0.2966, allocations: 7.699 MB / 0.5725 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005801/0.3024, allocations: 204.4 kB / 0.5727 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0172/0.3196, allocations: 7.17 MB / 0.5797 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01023/0.3299, allocations: 3.091 MB / 0.5827 GB, free: 376 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006774/0.3366, allocations: 2.006 MB / 0.5847 GB, free: 14.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0147/0.3513, allocations: 9.399 MB / 0.5938 GB, free: 9.039 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02801/0.3793, allocations: 11.19 MB / 0.6048 GB, free: 13.93 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009888/0.3892, allocations: 4.874 MB / 0.6095 GB, free: 9.047 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009609/0.3988, allocations: 5.053 MB / 0.6145 GB, free: 3.977 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004625/0.4035, allocations: 1.352 MB / 0.6158 GB, free: 2.625 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006623/0.4101, allocations: 1.722 MB / 0.6175 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004606/0.4147, allocations: 2.677 MB / 0.6201 GB, free: 14.22 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008725/0.4234, allocations: 3.958 MB / 0.6239 GB, free: 10.25 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02481/0.4482, allocations: 18.29 MB / 0.6418 GB, free: 7.898 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4482, allocations: 0 / 0.6418 GB, free: 7.898 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4482, allocations: 0 / 0.6418 GB, free: 7.898 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004415/0.4487, allocations: 0 / 0.6418 GB, free: 7.898 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.03592/0.4846, allocations: 10.88 MB / 0.6524 GB, free: 12.92 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.4846, allocations: 8.031 kB / 0.6524 GB, free: 12.91 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005018/0.4897, allocations: 1.268 MB / 0.6537 GB, free: 11.63 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03248/0.5221, allocations: 5.672 MB / 0.6592 GB, free: 5.949 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01474/0.5369, allocations: 5.836 MB / 0.6649 GB, free: 52 kB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007529/0.5376, allocations: 0.582 MB / 0.6655 GB, free: 15.46 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003415/0.5411, allocations: 0.7655 MB / 0.6662 GB, free: 14.7 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03473/0.5758, allocations: 12.98 MB / 0.6789 GB, free: 1.621 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000388/0.5762, allocations: 15.91 kB / 0.6789 GB, free: 1.605 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002708/0.5789, allocations: 320 kB / 0.6792 GB, free: 1.293 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006909/0.5796, allocations: 0.5045 MB / 0.6797 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02857/0.6081, allocations: 12.24 MB / 0.6917 GB, free: 4.523 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4964/1.105, allocations: 37.98 MB / 0.7288 GB, free: 87.33 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0189/1.123, allocations: 8.914 MB / 0.7375 GB, free: 84.85 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004744/1.128, allocations: 2.716 MB / 0.7401 GB, free: 83.81 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004154/1.129, allocations: 98.83 kB / 0.7402 GB, free: 83.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003855/1.132, allocations: 2.787 MB / 0.7429 GB, free: 82.38 MB / 494.1 MB Notification: Performance of pre-optimization done (n=391): time 6.602e-06/1.132, allocations: 0 / 0.7429 GB, free: 82.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=397): time 0.03586/1.168, allocations: 18.36 MB / 0.7609 GB, free: 71.52 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/1.168, allocations: 356.9 kB / 0.7612 GB, free: 71.14 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004282/1.173, allocations: 3.642 MB / 0.7648 GB, free: 68.71 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005902/1.173, allocations: 85.7 kB / 0.7648 GB, free: 68.62 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001432/1.175, allocations: 3.502 MB / 0.7683 GB, free: 65.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001067/1.176, allocations: 1.419 MB / 0.7697 GB, free: 64.12 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001346/1.177, allocations: 1.101 MB / 0.7707 GB, free: 63.02 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.217e-05/1.177, allocations: 301.1 kB / 0.771 GB, free: 62.72 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003214/1.18, allocations: 2.585 MB / 0.7735 GB, free: 60.12 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004229/1.185, allocations: 4.721 MB / 0.7782 GB, free: 54.47 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008177/1.193, allocations: 7.463 MB / 0.7854 GB, free: 46.13 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.629e-05/1.193, allocations: 20 kB / 0.7855 GB, free: 46.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01318/1.206, allocations: 8.323 MB / 0.7936 GB, free: 37.76 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.408e-05/1.206, allocations: 57.7 kB / 0.7936 GB, free: 37.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001297/1.206, allocations: 60 kB / 0.7937 GB, free: 37.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002437/1.209, allocations: 0.9929 MB / 0.7947 GB, free: 36.65 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004673/1.213, allocations: 1.263 MB / 0.7959 GB, free: 35.38 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/1.224, allocations: 8.566 MB / 0.8043 GB, free: 26.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004541/1.229, allocations: 359.4 kB / 0.8046 GB, free: 26.35 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008837/1.229, allocations: 268 kB / 0.8049 GB, free: 26.09 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.004898/1.234, allocations: 2.902 MB / 0.8077 GB, free: 23.17 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009949/1.235, allocations: 405.4 kB / 0.8081 GB, free: 22.77 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009048/1.244, allocations: 6.169 MB / 0.8141 GB, free: 16.54 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.027e-05/1.244, allocations: 47.94 kB / 0.8142 GB, free: 16.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.455e-05/1.244, allocations: 8 kB / 0.8142 GB, free: 16.49 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.964e-05/1.244, allocations: 23.92 kB / 0.8142 GB, free: 16.46 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0229/1.267, allocations: 13.98 MB / 0.8278 GB, free: 2.418 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-05/1.267, allocations: 4 kB / 0.8278 GB, free: 2.414 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002511/1.27, allocations: 0.6865 MB / 0.8285 GB, free: 1.727 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002141/1.272, allocations: 0.876 MB / 0.8294 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004103/1.272, allocations: 87.97 kB / 0.8295 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0117/1.284, allocations: 7.508 MB / 0.8368 GB, free: 9.137 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/1.284, allocations: 8.031 kB / 0.8368 GB, free: 9.129 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01644/1.301, allocations: 8.844 MB / 0.8454 GB, free: 148 kB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003106/1.304, allocations: 0.8525 MB / 0.8463 GB, free: 15.29 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001068/1.305, allocations: 72 kB / 0.8463 GB, free: 15.22 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002521/1.307, allocations: 203.8 kB / 0.8465 GB, free: 15.02 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006524/1.308, allocations: 287 kB / 0.8468 GB, free: 14.74 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002488/1.308, allocations: 120 kB / 0.8469 GB, free: 14.62 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004052/1.312, allocations: 2.363 MB / 0.8492 GB, free: 12.27 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.2e-07/1.312, allocations: 0 / 0.8492 GB, free: 12.27 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005803/1.318, allocations: 1.461 MB / 0.8506 GB, free: 10.8 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.01613/1.334, allocations: 9.558 MB / 0.86 GB, free: 1.105 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01292/1.347, allocations: 6.282 MB / 0.8661 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.305e-05/1.347, allocations: 4 kB / 0.8661 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006242/1.353, allocations: 2.906 MB / 0.869 GB, free: 7.848 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005162/1.358, allocations: 0.8188 MB / 0.8698 GB, free: 7.047 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09469/1.453, allocations: 48.35 MB / 0.917 GB, free: 4.551 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2394/1.693, allocations: 4.532 MB / 0.9214 GB, free: 192.1 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005426/1.698, allocations: 1.585 MB / 0.9229 GB, free: 192.1 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004785/1.703, allocations: 2.776 MB / 0.9257 GB, free: 192.1 MB / 0.5763 GB Notification: Performance of SimCode: time 1.552e-06/1.703, allocations: 4 kB / 0.9257 GB, free: 192.1 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1716/1.874, allocations: 115.8 MB / 1.039 GB, free: 107.4 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.63/18.51, allocations: 7.109 kB / 1.039 GB, free: 107.4 MB / 0.5763 GB " [Timeout remaining time 641] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.334221723023802] Failed to read output from testmodel.py, exit status != 0: 18.679264583159238 18.690231563 18.239265374 Calling exit ...