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.001244/0.001244, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.493/1.493, allocations: 230.6 MB / 252.6 MB, free: 8.328 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.002921/0.002921, allocations: 220.6 kB / 309.2 MB, free: 3.164 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.04287/0.04287, allocations: 8.904 MB / 374.6 MB, free: 1.918 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.002687/0.002687, allocations: 87.88 kB / 0.4892 GB, free: 7.344 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3685/0.3711, allocations: 55.6 MB / 0.5435 GB, free: 26.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02217/0.3933, allocations: 25.07 MB / 0.568 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01744/0.4108, allocations: 8.3 MB / 0.5761 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006173/0.4169, allocations: 217.8 kB / 0.5763 GB, free: 2.789 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02169/0.4386, allocations: 8.503 MB / 0.5846 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0118/0.4504, allocations: 3.149 MB / 0.5877 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006447/0.4569, allocations: 1.893 MB / 0.5895 GB, free: 9.875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01822/0.4751, allocations: 11.35 MB / 0.6006 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03329/0.5084, allocations: 14.67 MB / 0.615 GB, free: 3.746 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01291/0.5213, allocations: 6.075 MB / 0.6209 GB, free: 13.66 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01322/0.5345, allocations: 6.573 MB / 0.6273 GB, free: 7.062 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00565/0.5402, allocations: 1.715 MB / 0.629 GB, free: 5.348 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009049/0.5492, allocations: 2.16 MB / 0.6311 GB, free: 3.188 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007351/0.5566, allocations: 3.414 MB / 0.6344 GB, free: 15.77 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01563/0.5722, allocations: 6.362 MB / 0.6406 GB, free: 9.379 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.038/0.6102, allocations: 23.2 MB / 0.6633 GB, free: 2.105 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.6102, allocations: 0 / 0.6633 GB, free: 2.105 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6102, allocations: 0 / 0.6633 GB, free: 2.105 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006841/0.6109, allocations: 0 / 0.6633 GB, free: 2.105 MB / 462.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.04839/0.6593, allocations: 13.58 MB / 0.6766 GB, free: 4.426 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.072e-05/0.6593, allocations: 8.031 kB / 0.6766 GB, free: 4.418 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007257/0.6666, allocations: 1.605 MB / 0.6781 GB, free: 2.801 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03773/0.7043, allocations: 6.26 MB / 0.6842 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02025/0.7246, allocations: 7.37 MB / 0.6914 GB, free: 5.074 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008786/0.7255, allocations: 0.7225 MB / 0.6921 GB, free: 4.352 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005428/0.7309, allocations: 0.9491 MB / 0.6931 GB, free: 3.402 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5872/1.318, allocations: 16.2 MB / 0.7089 GB, free: 97.89 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005278/1.319, allocations: 15.67 kB / 0.7089 GB, free: 97.89 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004345/1.323, allocations: 405.4 kB / 0.7093 GB, free: 97.59 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008745/1.324, allocations: 0.564 MB / 0.7098 GB, free: 97.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03712/1.361, allocations: 15.17 MB / 0.7247 GB, free: 91.77 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09818/1.459, allocations: 51.49 MB / 0.7749 GB, free: 52.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01547/1.475, allocations: 8.627 MB / 0.7834 GB, free: 44.97 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005403/1.48, allocations: 3.324 MB / 0.7866 GB, free: 41.66 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00058/1.481, allocations: 144.8 kB / 0.7867 GB, free: 41.54 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.078e-05/1.481, allocations: 82 kB / 0.7868 GB, free: 41.45 MB / 494.1 MB Notification: Performance of pre-optimization done (n=447): time 8.306e-06/1.481, allocations: 7.219 kB / 0.7868 GB, free: 41.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=452): time 0.05203/1.533, allocations: 20.55 MB / 0.8069 GB, free: 21.28 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.747e-05/1.533, allocations: 106.9 kB / 0.807 GB, free: 21.16 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007316/1.54, allocations: 4.519 MB / 0.8114 GB, free: 16.67 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008844/1.541, allocations: 93.7 kB / 0.8115 GB, free: 16.57 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001848/1.543, allocations: 4.355 MB / 0.8157 GB, free: 12.42 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001464/1.544, allocations: 1.606 MB / 0.8173 GB, free: 10.84 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001575/1.546, allocations: 1.208 MB / 0.8185 GB, free: 9.617 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.768e-05/1.546, allocations: 309.1 kB / 0.8188 GB, free: 9.312 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003718/1.55, allocations: 3.069 MB / 0.8218 GB, free: 6.238 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004437/1.554, allocations: 5.222 MB / 0.8269 GB, free: 44 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01311/1.567, allocations: 8.883 MB / 0.8356 GB, free: 6.188 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.876e-05/1.567, allocations: 20 kB / 0.8356 GB, free: 6.168 MB / 0.4982 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01879/1.586, allocations: 9.877 MB / 0.8452 GB, free: 12.27 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.2e-05/1.586, allocations: 32 kB / 0.8453 GB, free: 12.24 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001505/1.586, allocations: 68 kB / 0.8453 GB, free: 12.18 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004184/1.59, allocations: 1.406 MB / 0.8467 GB, free: 10.76 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006132/1.597, allocations: 1.392 MB / 0.8481 GB, free: 9.367 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02099/1.618, allocations: 12.46 MB / 0.8602 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005257/1.623, allocations: 359.5 kB / 0.8606 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001234/1.624, allocations: 303.9 kB / 0.8609 GB, free: 12.04 MB / 0.5294 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.009228/1.633, allocations: 3.888 MB / 0.8647 GB, free: 8.137 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001427/1.635, allocations: 488.8 kB / 0.8651 GB, free: 7.656 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01571/1.65, allocations: 8.475 MB / 0.8734 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0121/1.663, allocations: 6.232 MB / 0.8795 GB, free: 8.875 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.749e-05/1.663, allocations: 12 kB / 0.8795 GB, free: 8.863 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-05/1.663, allocations: 23.91 kB / 0.8795 GB, free: 8.84 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04045/1.703, allocations: 17.47 MB / 0.8966 GB, free: 7.25 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.592e-05/1.703, allocations: 8 kB / 0.8966 GB, free: 7.242 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004021/1.707, allocations: 0.8035 MB / 0.8974 GB, free: 6.438 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004028/1.711, allocations: 1.289 MB / 0.8986 GB, free: 5.141 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009029/1.712, allocations: 112 kB / 0.8987 GB, free: 5.031 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01931/1.731, allocations: 11.36 MB / 0.9098 GB, free: 9.438 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.191e-05/1.731, allocations: 11.94 kB / 0.9098 GB, free: 9.426 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3444/2.076, allocations: 11.21 MB / 0.9208 GB, free: 179 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004364/2.08, allocations: 1.067 MB / 0.9218 GB, free: 179 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001259/2.081, allocations: 95.19 kB / 0.9219 GB, free: 179 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002745/2.084, allocations: 227.5 kB / 0.9221 GB, free: 179 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007874/2.085, allocations: 344.1 kB / 0.9225 GB, free: 179 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003386/2.085, allocations: 143 kB / 0.9226 GB, free: 179 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005485/2.091, allocations: 3.124 MB / 0.9256 GB, free: 178.8 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.9e-07/2.091, allocations: 0 / 0.9256 GB, free: 178.8 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.006974/2.098, allocations: 1.727 MB / 0.9273 GB, free: 178.7 MB / 0.5763 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.01771/2.115, allocations: 12.21 MB / 0.9393 GB, free: 173.3 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01595/2.131, allocations: 7.695 MB / 0.9468 GB, free: 170.3 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.63e-05/2.131, allocations: 1.188 kB / 0.9468 GB, free: 170.3 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.008224/2.14, allocations: 3.693 MB / 0.9504 GB, free: 168.8 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006496/2.146, allocations: 1.058 MB / 0.9514 GB, free: 168.4 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09555/2.242, allocations: 60.91 MB / 1.011 GB, free: 124.9 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005706/2.247, allocations: 6.521 MB / 1.017 GB, free: 119.1 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004912/2.252, allocations: 2.119 MB / 1.019 GB, free: 117 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0045/2.257, allocations: 3.577 MB / 1.023 GB, free: 113.4 MB / 0.5763 GB Notification: Performance of SimCode: time 9.32e-07/2.257, allocations: 4 kB / 1.023 GB, free: 113.4 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5103/2.767, allocations: 146.2 MB / 1.166 GB, free: 174.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.03/25.8, allocations: 8.578 kB / 1.166 GB, free: 174.7 MB / 0.5919 GB " [Timeout remaining time 634] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_withLosses.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 51.350110857980326] Failed to read output from testmodel.py, exit status != 0: 26.046143354149535 26.06761142 25.453213429 Calling exit ...