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.001311/0.001311, 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.456/1.456, allocations: 230.6 MB / 252.7 MB, free: 14.26 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.001597/0.001597, allocations: 207.2 kB / 309.2 MB, free: 3.117 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.04054/0.04054, allocations: 8.922 MB / 374.6 MB, free: 6.57 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.002411/0.002411, allocations: 87.86 kB / 0.4892 GB, free: 44.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08157/0.08398, allocations: 55.61 MB / 0.5435 GB, free: 5.012 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.2225/0.3065, allocations: 21.49 MB / 0.5644 GB, free: 9.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01338/0.3198, allocations: 7.896 MB / 0.5722 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004619/0.3245, allocations: 214.4 kB / 0.5724 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01756/0.342, allocations: 7.838 MB / 0.58 GB, free: 7.598 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00995/0.352, allocations: 3.077 MB / 0.583 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005491/0.3575, allocations: 1.82 MB / 0.5848 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01241/0.3699, allocations: 11.33 MB / 0.5959 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02715/0.397, allocations: 14.48 MB / 0.61 GB, free: 7.008 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01149/0.4085, allocations: 6.079 MB / 0.6159 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01265/0.4212, allocations: 6.283 MB / 0.6221 GB, free: 13.21 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004196/0.4254, allocations: 1.715 MB / 0.6238 GB, free: 11.49 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006423/0.4318, allocations: 2.136 MB / 0.6258 GB, free: 9.355 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005075/0.4368, allocations: 3.402 MB / 0.6292 GB, free: 5.945 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00991/0.4468, allocations: 4.915 MB / 0.634 GB, free: 1.012 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03166/0.4784, allocations: 23.28 MB / 0.6567 GB, free: 9.656 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.4784, allocations: 4 kB / 0.6567 GB, free: 9.652 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4784, allocations: 0 / 0.6567 GB, free: 9.652 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005011/0.4789, allocations: 0 / 0.6567 GB, free: 9.652 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.04087/0.5198, allocations: 13.58 MB / 0.67 GB, free: 11.98 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.56e-05/0.5199, allocations: 11.98 kB / 0.67 GB, free: 11.97 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006332/0.5262, allocations: 1.612 MB / 0.6715 GB, free: 10.35 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03509/0.5613, allocations: 6.252 MB / 0.6776 GB, free: 4.082 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01976/0.581, allocations: 7.386 MB / 0.6849 GB, free: 12.61 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008376/0.5819, allocations: 0.7225 MB / 0.6856 GB, free: 11.89 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003748/0.5856, allocations: 0.9413 MB / 0.6865 GB, free: 10.95 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03901/0.6246, allocations: 16.35 MB / 0.7025 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000225/0.6249, allocations: 11.95 kB / 0.7025 GB, free: 10.49 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001266/0.6261, allocations: 407.9 kB / 0.7029 GB, free: 10.09 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006278/0.6268, allocations: 0.5592 MB / 0.7034 GB, free: 9.527 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03212/0.6589, allocations: 15.09 MB / 0.7181 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09383/0.7527, allocations: 47.17 MB / 0.7642 GB, free: 10.21 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01761/0.7703, allocations: 8.532 MB / 0.7725 GB, free: 2.422 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.412/1.182, allocations: 3.31 MB / 0.7758 GB, free: 160.5 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005148/1.183, allocations: 120.6 kB / 0.7759 GB, free: 160.5 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.046e-05/1.183, allocations: 80.22 kB / 0.776 GB, free: 160.5 MB / 0.545 GB Notification: Performance of pre-optimization done (n=447): time 7.304e-06/1.183, allocations: 0 / 0.776 GB, free: 160.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=452): time 0.0476/1.23, allocations: 20.44 MB / 0.7959 GB, free: 156.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/1.231, allocations: 98.64 kB / 0.796 GB, free: 156.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006394/1.237, allocations: 4.631 MB / 0.8005 GB, free: 154.6 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007488/1.238, allocations: 101.2 kB / 0.8006 GB, free: 154.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002264/1.24, allocations: 4.348 MB / 0.8049 GB, free: 151.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001659/1.242, allocations: 1.613 MB / 0.8065 GB, free: 150.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00192/1.244, allocations: 1.206 MB / 0.8076 GB, free: 150 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.798e-05/1.244, allocations: 307.8 kB / 0.8079 GB, free: 149.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00427/1.248, allocations: 3.067 MB / 0.8109 GB, free: 148.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005039/1.253, allocations: 5.232 MB / 0.816 GB, free: 144.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009591/1.262, allocations: 8.876 MB / 0.8247 GB, free: 138.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001005/1.263, allocations: 19.62 kB / 0.8247 GB, free: 138.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.0147/1.277, allocations: 9.845 MB / 0.8343 GB, free: 134.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.981e-05/1.277, allocations: 35.06 kB / 0.8344 GB, free: 134.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001158/1.277, allocations: 73.08 kB / 0.8344 GB, free: 134.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003274/1.281, allocations: 1.371 MB / 0.8358 GB, free: 133.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004796/1.286, allocations: 1.396 MB / 0.8371 GB, free: 132.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0135/1.299, allocations: 12.12 MB / 0.849 GB, free: 119.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004393/1.303, allocations: 359.5 kB / 0.8493 GB, free: 119.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007453/1.304, allocations: 297.9 kB / 0.8496 GB, free: 119.3 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.005069/1.309, allocations: 3.889 MB / 0.8534 GB, free: 115.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009802/1.31, allocations: 484.9 kB / 0.8539 GB, free: 114.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01139/1.322, allocations: 8.443 MB / 0.8621 GB, free: 106.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008533/1.33, allocations: 6.209 MB / 0.8682 GB, free: 100.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.988e-05/1.33, allocations: 12 kB / 0.8682 GB, free: 100.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.189e-05/1.33, allocations: 23.92 kB / 0.8682 GB, free: 100.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02933/1.36, allocations: 16.6 MB / 0.8844 GB, free: 83.51 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.771e-05/1.36, allocations: 8 kB / 0.8844 GB, free: 83.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002946/1.362, allocations: 0.8083 MB / 0.8852 GB, free: 82.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003009/1.365, allocations: 1.265 MB / 0.8864 GB, free: 81.42 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003484/1.366, allocations: 111.9 kB / 0.8865 GB, free: 81.31 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01213/1.378, allocations: 11.03 MB / 0.8973 GB, free: 70.07 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.7e-06/1.378, allocations: 14.73 kB / 0.8973 GB, free: 70.06 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01409/1.392, allocations: 11.17 MB / 0.9082 GB, free: 58.75 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002853/1.395, allocations: 1.059 MB / 0.9093 GB, free: 57.68 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006917/1.396, allocations: 88 kB / 0.9094 GB, free: 57.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002151/1.398, allocations: 231.8 kB / 0.9096 GB, free: 57.37 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005776/1.398, allocations: 355.2 kB / 0.9099 GB, free: 57.02 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002556/1.399, allocations: 143.8 kB / 0.9101 GB, free: 56.89 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003467/1.402, allocations: 3.108 MB / 0.9131 GB, free: 53.77 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/1.402, allocations: 4 kB / 0.9131 GB, free: 53.77 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005113/1.407, allocations: 1.726 MB / 0.9148 GB, free: 52.04 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.01525/1.422, allocations: 12.19 MB / 0.9267 GB, free: 39.88 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01232/1.435, allocations: 7.655 MB / 0.9342 GB, free: 32.21 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.429e-05/1.435, allocations: 1 kB / 0.9342 GB, free: 32.21 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006891/1.442, allocations: 3.686 MB / 0.9378 GB, free: 28.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005795/1.447, allocations: 1.063 MB / 0.9388 GB, free: 27.47 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2989/1.746, allocations: 60.73 MB / 0.9981 GB, free: 183.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008019/1.754, allocations: 6.077 MB / 1.004 GB, free: 183 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005763/1.76, allocations: 2.117 MB / 1.006 GB, free: 182.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004649/1.765, allocations: 3.579 MB / 1.01 GB, free: 182.6 MB / 0.5763 GB Notification: Performance of SimCode: time 1.102e-06/1.765, allocations: 0 / 1.01 GB, free: 182.6 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1856/1.95, allocations: 143.1 MB / 1.149 GB, free: 62.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.02/19.97, allocations: 10.72 kB / 1.149 GB, free: 62.2 MB / 0.5763 GB " [Timeout remaining time 640] (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: 44.262964143417776] Failed to read output from testmodel.py, exit status != 0: 20.21241460694 20.233646055 19.750962107 Calling exit ...