Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.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.001731/0.001731, 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.412/1.412, allocations: 230.6 MB / 252.7 MB, free: 14.28 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.001634/0.001634, allocations: 201.5 kB / 309.2 MB, free: 3.105 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.04071/0.04071, allocations: 8.913 MB / 374.6 MB, free: 6.605 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.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",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.004012/0.004012, allocations: 87.88 kB / 0.4891 GB, free: 44.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1155, allocations: 55.61 MB / 0.5435 GB, free: 5.055 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.2261/0.3416, allocations: 21.49 MB / 0.5644 GB, free: 9.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01316/0.3548, allocations: 7.899 MB / 0.5722 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004224/0.359, allocations: 212.3 kB / 0.5724 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01819/0.3772, allocations: 7.843 MB / 0.58 GB, free: 7.633 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01193/0.3891, allocations: 3.07 MB / 0.583 GB, free: 6.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006262/0.3954, allocations: 1.824 MB / 0.5848 GB, free: 5.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01554/0.4109, allocations: 11.34 MB / 0.5959 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02851/0.4394, allocations: 14.49 MB / 0.61 GB, free: 7.059 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01259/0.452, allocations: 6.07 MB / 0.6159 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01314/0.4652, allocations: 6.273 MB / 0.6221 GB, free: 13.27 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005238/0.4704, allocations: 1.719 MB / 0.6238 GB, free: 11.55 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007919/0.4783, allocations: 2.14 MB / 0.6258 GB, free: 9.406 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005728/0.4841, allocations: 3.406 MB / 0.6292 GB, free: 5.992 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01117/0.4952, allocations: 4.911 MB / 0.634 GB, free: 1.062 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02975/0.525, allocations: 23.28 MB / 0.6567 GB, free: 9.715 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.525, allocations: 3.938 kB / 0.6567 GB, free: 9.711 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.525, allocations: 0 / 0.6567 GB, free: 9.711 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006065/0.5256, allocations: 3.938 kB / 0.6567 GB, free: 9.707 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: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.04439/0.57, allocations: 13.57 MB / 0.67 GB, free: 12.04 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.901e-05/0.5701, allocations: 11.98 kB / 0.67 GB, free: 12.03 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006238/0.5763, allocations: 1.608 MB / 0.6715 GB, free: 10.41 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03555/0.6119, allocations: 6.26 MB / 0.6777 GB, free: 4.133 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0198/0.6317, allocations: 7.382 MB / 0.6849 GB, free: 12.67 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009597/0.6326, allocations: 0.7264 MB / 0.6856 GB, free: 11.94 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003915/0.6366, allocations: 0.9491 MB / 0.6865 GB, free: 10.99 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04118/0.6777, allocations: 16.34 MB / 0.7025 GB, free: 10.55 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004379/0.6782, allocations: 15.94 kB / 0.7025 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003322/0.6815, allocations: 404 kB / 0.7029 GB, free: 10.14 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000814/0.6823, allocations: 0.5592 MB / 0.7034 GB, free: 9.578 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03433/0.7166, allocations: 15.09 MB / 0.7181 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1016/0.8183, allocations: 47.17 MB / 0.7642 GB, free: 10.26 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01686/0.8351, allocations: 8.527 MB / 0.7725 GB, free: 2.477 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3891/1.224, allocations: 3.311 MB / 0.7758 GB, free: 161.4 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005938/1.225, allocations: 121.6 kB / 0.7759 GB, free: 161.4 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.569e-05/1.225, allocations: 78.72 kB / 0.776 GB, free: 161.4 MB / 0.545 GB Notification: Performance of pre-optimization done (n=447): time 7.995e-06/1.225, allocations: 0 / 0.776 GB, free: 161.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=452): time 0.04944/1.274, allocations: 20.44 MB / 0.7959 GB, free: 157.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.564e-05/1.274, allocations: 97.45 kB / 0.796 GB, free: 157.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006536/1.281, allocations: 4.631 MB / 0.8005 GB, free: 155.6 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006369/1.282, allocations: 99.89 kB / 0.8006 GB, free: 155.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002139/1.284, allocations: 4.352 MB / 0.8049 GB, free: 152.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001448/1.285, allocations: 1.611 MB / 0.8065 GB, free: 151.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001997/1.287, allocations: 1.203 MB / 0.8076 GB, free: 150.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.431e-05/1.287, allocations: 306.4 kB / 0.8079 GB, free: 150.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004173/1.291, allocations: 3.07 MB / 0.8109 GB, free: 149.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004758/1.296, allocations: 5.232 MB / 0.816 GB, free: 145.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008949/1.305, allocations: 8.874 MB / 0.8247 GB, free: 139.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.491e-05/1.305, allocations: 19.47 kB / 0.8247 GB, free: 139.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.0152/1.32, allocations: 9.848 MB / 0.8343 GB, free: 134.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.908e-05/1.32, allocations: 36.55 kB / 0.8344 GB, free: 134.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001275/1.321, allocations: 68 kB / 0.8344 GB, free: 134.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00335/1.324, allocations: 1.371 MB / 0.8358 GB, free: 133.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004803/1.329, allocations: 1.395 MB / 0.8371 GB, free: 132.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0137/1.342, allocations: 12.12 MB / 0.849 GB, free: 120.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004889/1.347, allocations: 359.5 kB / 0.8493 GB, free: 119.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007983/1.348, allocations: 299.9 kB / 0.8496 GB, free: 119.4 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (720): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006147/1.354, allocations: 3.88 MB / 0.8534 GB, free: 115.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001278/1.356, allocations: 490.4 kB / 0.8539 GB, free: 115.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01124/1.367, allocations: 8.446 MB / 0.8621 GB, free: 106.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008359/1.375, allocations: 6.201 MB / 0.8682 GB, free: 100.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.787e-05/1.375, allocations: 12 kB / 0.8682 GB, free: 100.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.044e-05/1.375, allocations: 23.91 kB / 0.8682 GB, free: 100.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02504/1.4, allocations: 16.61 MB / 0.8844 GB, free: 83.64 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.818e-05/1.4, allocations: 8 kB / 0.8844 GB, free: 83.63 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002975/1.403, allocations: 0.8129 MB / 0.8852 GB, free: 82.82 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002955/1.406, allocations: 1.261 MB / 0.8864 GB, free: 81.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003734/1.407, allocations: 111.9 kB / 0.8866 GB, free: 81.44 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01236/1.419, allocations: 11.03 MB / 0.8973 GB, free: 70.21 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.74e-06/1.419, allocations: 12.06 kB / 0.8973 GB, free: 70.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01511/1.434, allocations: 11.17 MB / 0.9082 GB, free: 58.88 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003336/1.437, allocations: 1.064 MB / 0.9093 GB, free: 57.81 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009326/1.438, allocations: 87.98 kB / 0.9094 GB, free: 57.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002296/1.441, allocations: 235.8 kB / 0.9096 GB, free: 57.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006457/1.441, allocations: 347.2 kB / 0.9099 GB, free: 57.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002704/1.442, allocations: 144 kB / 0.9101 GB, free: 57.02 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004723/1.446, allocations: 3.111 MB / 0.9131 GB, free: 53.89 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/1.446, allocations: 0 / 0.9131 GB, free: 53.89 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0077/1.454, allocations: 1.722 MB / 0.9148 GB, free: 52.17 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imc.inertiaRotor.w,imc.rotorCage.port_p.reference.gamma,loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (417): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,43.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01733/1.471, allocations: 12.19 MB / 0.9267 GB, free: 40.02 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01233/1.484, allocations: 7.66 MB / 0.9342 GB, free: 32.35 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.658e-05/1.484, allocations: 0 / 0.9342 GB, free: 32.35 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006597/1.49, allocations: 3.698 MB / 0.9378 GB, free: 28.62 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005718/1.496, allocations: 1.052 MB / 0.9388 GB, free: 27.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3186/1.815, allocations: 60.72 MB / 0.9981 GB, free: 183.6 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01237/1.827, allocations: 6.074 MB / 1.004 GB, free: 183.2 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006225/1.833, allocations: 2.121 MB / 1.006 GB, free: 183.1 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006516/1.84, allocations: 3.585 MB / 1.01 GB, free: 182.8 MB / 0.5763 GB Notification: Performance of SimCode: time 1.503e-06/1.84, allocations: 0 / 1.01 GB, free: 182.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1841/2.024, allocations: 143.1 MB / 1.149 GB, free: 62.48 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.62/20.64, allocations: 3.5 kB / 1.149 GB, free: 62.48 MB / 0.5763 GB " [Timeout remaining time 639] (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_InductionMachines_IMC_withLosses.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 28.340652639977634] Failed to read output from testmodel.py, exit status != 0: 20.879034944809973 20.893330731 20.364783198 Calling exit ...