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.001806/0.001806, allocations: 107.3 kB / 16.46 MB, free: 6.508 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.541/1.541, allocations: 230.6 MB / 249.8 MB, free: 9.223 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.002724/0.002724, allocations: 208.9 kB / 306 MB, free: 4.312 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.0452/0.0452, allocations: 8.905 MB / 371 MB, free: 3.453 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.002573/0.002573, allocations: 83.88 kB / 495.8 MB, free: 9.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2778, allocations: 55.57 MB / 0.5384 GB, free: 26.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02241/0.3002, allocations: 25.6 MB / 0.5634 GB, free: 8.199 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01564/0.3159, allocations: 8.061 MB / 0.5713 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005869/0.3217, allocations: 207.9 kB / 0.5715 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02016/0.3419, allocations: 7.724 MB / 0.579 GB, free: 13.74 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.013/0.3549, allocations: 3.099 MB / 0.5821 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008191/0.3631, allocations: 2.055 MB / 0.5841 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01634/0.3794, allocations: 9.31 MB / 0.5932 GB, free: 4.629 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02469/0.4041, allocations: 12.82 MB / 0.6057 GB, free: 9.066 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00948/0.4136, allocations: 4.855 MB / 0.6104 GB, free: 4.199 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0102/0.4238, allocations: 5.342 MB / 0.6156 GB, free: 14.84 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004286/0.4281, allocations: 1.355 MB / 0.617 GB, free: 13.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006525/0.4346, allocations: 1.738 MB / 0.6187 GB, free: 11.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004462/0.4391, allocations: 2.677 MB / 0.6213 GB, free: 9.062 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00948/0.4485, allocations: 5.094 MB / 0.6263 GB, free: 3.949 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02751/0.4761, allocations: 18.22 MB / 0.644 GB, free: 1.668 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.4761, allocations: 0 / 0.644 GB, free: 1.668 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4761, allocations: 0 / 0.644 GB, free: 1.668 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004462/0.4765, allocations: 0 / 0.644 GB, free: 1.668 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.03477/0.5113, allocations: 10.95 MB / 0.6547 GB, free: 6.605 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.5113, allocations: 15.97 kB / 0.6548 GB, free: 6.59 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004527/0.5159, allocations: 1.268 MB / 0.656 GB, free: 5.312 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03422/0.5501, allocations: 5.672 MB / 0.6615 GB, free: 15.63 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01381/0.5639, allocations: 5.83 MB / 0.6672 GB, free: 9.742 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007306/0.5646, allocations: 0.582 MB / 0.6678 GB, free: 9.16 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003104/0.5677, allocations: 0.7694 MB / 0.6685 GB, free: 8.391 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03448/0.6022, allocations: 12.8 MB / 0.6811 GB, free: 11.53 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003561/0.6026, allocations: 11.95 kB / 0.6811 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003281/0.6058, allocations: 324 kB / 0.6814 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006742/0.6065, allocations: 0.5006 MB / 0.6819 GB, free: 10.7 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4962/1.103, allocations: 12.29 MB / 0.6939 GB, free: 105.9 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07262/1.175, allocations: 45.17 MB / 0.738 GB, free: 78.63 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0202/1.196, allocations: 24.82 MB / 0.7622 GB, free: 54.95 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004961/1.2, allocations: 2.725 MB / 0.7649 GB, free: 53.53 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004276/1.201, allocations: 354.7 kB / 0.7652 GB, free: 53.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003321/1.204, allocations: 2.579 MB / 0.7677 GB, free: 51.59 MB / 494.1 MB Notification: Performance of pre-optimization done (n=391): time 5.451e-06/1.204, allocations: 7.844 kB / 0.7677 GB, free: 51.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=397): time 0.03383/1.238, allocations: 18.44 MB / 0.7857 GB, free: 40.02 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/1.238, allocations: 355.5 kB / 0.7861 GB, free: 39.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005159/1.243, allocations: 3.536 MB / 0.7895 GB, free: 36.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000768/1.244, allocations: 89.7 kB / 0.7896 GB, free: 36.01 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001729/1.246, allocations: 3.494 MB / 0.793 GB, free: 32.67 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001404/1.247, allocations: 1.423 MB / 0.7944 GB, free: 31.27 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00167/1.249, allocations: 1.097 MB / 0.7955 GB, free: 30.16 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.358e-05/1.249, allocations: 305.1 kB / 0.7958 GB, free: 29.86 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003427/1.252, allocations: 2.556 MB / 0.7983 GB, free: 27.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004419/1.257, allocations: 4.519 MB / 0.8027 GB, free: 21.9 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008681/1.265, allocations: 7.463 MB / 0.81 GB, free: 13.56 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.809e-05/1.266, allocations: 23.94 kB / 0.81 GB, free: 13.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01508/1.281, allocations: 8.286 MB / 0.8181 GB, free: 5.23 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/1.281, allocations: 57.7 kB / 0.8182 GB, free: 5.168 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001114/1.281, allocations: 60.31 kB / 0.8182 GB, free: 5.109 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002789/1.284, allocations: 1.006 MB / 0.8192 GB, free: 4.102 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004876/1.288, allocations: 1.275 MB / 0.8204 GB, free: 2.824 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01531/1.304, allocations: 8.818 MB / 0.829 GB, free: 9.867 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005196/1.309, allocations: 359.4 kB / 0.8294 GB, free: 9.516 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001316/1.31, allocations: 272 kB / 0.8296 GB, free: 9.25 MB / 0.4982 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.007195/1.318, allocations: 2.891 MB / 0.8325 GB, free: 6.34 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001761/1.319, allocations: 409.4 kB / 0.8329 GB, free: 5.938 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01572/1.335, allocations: 6.149 MB / 0.8389 GB, free: 15.74 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.026e-05/1.335, allocations: 43.94 kB / 0.8389 GB, free: 15.7 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-05/1.335, allocations: 16 kB / 0.8389 GB, free: 15.68 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.791e-05/1.335, allocations: 23.86 kB / 0.8389 GB, free: 15.66 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03311/1.368, allocations: 14.63 MB / 0.8532 GB, free: 0.957 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.011e-05/1.368, allocations: 8 kB / 0.8532 GB, free: 0.9492 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003047/1.371, allocations: 0.6944 MB / 0.8539 GB, free: 260 kB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002822/1.374, allocations: 0.8686 MB / 0.8548 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004434/1.375, allocations: 99.97 kB / 0.8549 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01306/1.388, allocations: 7.761 MB / 0.8624 GB, free: 7.387 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.311e-06/1.388, allocations: 4 kB / 0.8624 GB, free: 7.383 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01712/1.405, allocations: 8.785 MB / 0.871 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003028/1.408, allocations: 0.9278 MB / 0.8719 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009849/1.409, allocations: 72 kB / 0.872 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002438/1.411, allocations: 187.8 kB / 0.8722 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007266/1.412, allocations: 287.4 kB / 0.8725 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002608/1.412, allocations: 120 kB / 0.8726 GB, free: 12.87 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004742/1.417, allocations: 2.363 MB / 0.8749 GB, free: 10.51 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.9e-07/1.417, allocations: 0 / 0.8749 GB, free: 10.51 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008283/1.425, allocations: 1.461 MB / 0.8763 GB, free: 9.051 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.01759/1.443, allocations: 9.513 MB / 0.8856 GB, free: 15.41 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01399/1.457, allocations: 6.218 MB / 0.8917 GB, free: 9.168 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.425e-05/1.457, allocations: 4 kB / 0.8917 GB, free: 9.164 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006825/1.464, allocations: 2.887 MB / 0.8945 GB, free: 6.25 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005135/1.469, allocations: 0.8208 MB / 0.8953 GB, free: 5.449 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3288/1.798, allocations: 48.14 MB / 0.9423 GB, free: 181.7 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008488/1.806, allocations: 5.012 MB / 0.9472 GB, free: 179.9 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005302/1.811, allocations: 1.595 MB / 0.9488 GB, free: 179.7 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003906/1.815, allocations: 2.771 MB / 0.9515 GB, free: 177.4 MB / 0.5763 GB Notification: Performance of SimCode: time 1.653e-06/1.815, allocations: 0 / 0.9515 GB, free: 177.4 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1604/1.976, allocations: 113.1 MB / 1.062 GB, free: 78.53 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.08/22.06, allocations: 10.25 kB / 1.062 GB, free: 78.53 MB / 0.5763 GB " [Timeout remaining time 638] (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: 25.164415785999154] Failed to read output from testmodel.py, exit status != 0: 22.2134532439959 22.232595695 21.752234259 Calling exit ...