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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_withLosses") translateModel(HanserModelica.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005576/0.005576, allocations: 99.27 kB / 15.73 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 222.9 MB / 239.4 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 188.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03306/0.03306, allocations: 8.803 MB / 348.7 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 79.88 kB / 463.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0848/0.08613, allocations: 51.56 MB / 0.5034 GB, free: 9.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02215/0.1083, allocations: 24.87 MB / 0.5277 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1976/0.306, allocations: 7.986 MB / 0.5355 GB, free: 4.828 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003923/0.31, allocations: 183.7 kB / 0.5357 GB, free: 4.828 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01566/0.3257, allocations: 8.367 MB / 0.5438 GB, free: 3.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008117/0.3338, allocations: 2.983 MB / 0.5467 GB, free: 3.074 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00441/0.3382, allocations: 1.811 MB / 0.5485 GB, free: 2.914 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01325/0.3515, allocations: 11.11 MB / 0.5594 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03114/0.3827, allocations: 23.27 MB / 0.5821 GB, free: 14.19 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008657/0.3914, allocations: 5.89 MB / 0.5878 GB, free: 8.422 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009637/0.4011, allocations: 6.446 MB / 0.5941 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003848/0.4049, allocations: 1.719 MB / 0.5958 GB, free: 436 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006213/0.4112, allocations: 2.131 MB / 0.5979 GB, free: 14.3 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005136/0.4163, allocations: 3.386 MB / 0.6012 GB, free: 10.96 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009526/0.4259, allocations: 6.359 MB / 0.6074 GB, free: 4.617 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02488/0.4508, allocations: 23.16 MB / 0.63 GB, free: 13.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.4508, allocations: 0 / 0.63 GB, free: 13.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4508, allocations: 0 / 0.63 GB, free: 13.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004436/0.4513, allocations: 0 / 0.63 GB, free: 13.82 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.03339/0.4847, allocations: 13.62 MB / 0.6433 GB, free: 180 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.4847, allocations: 12.03 kB / 0.6433 GB, free: 168 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03323/0.518, allocations: 6.316 MB / 0.6495 GB, free: 9.914 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01282/0.5308, allocations: 7.265 MB / 0.6566 GB, free: 2.625 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004994/0.5314, allocations: 0.7196 MB / 0.6573 GB, free: 1.918 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002229/0.5336, allocations: 0.9518 MB / 0.6582 GB, free: 0.9766 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02743/0.561, allocations: 16.13 MB / 0.674 GB, free: 0.8125 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001848/0.5612, allocations: 7.953 kB / 0.674 GB, free: 0.8047 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001069/0.5623, allocations: 405.1 kB / 0.6744 GB, free: 432 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004829/0.5628, allocations: 0.5631 MB / 0.6749 GB, free: 15.85 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02747/0.5903, allocations: 15.11 MB / 0.6897 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4213/1.012, allocations: 52.12 MB / 0.7406 GB, free: 120.5 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01673/1.028, allocations: 20.1 MB / 0.7602 GB, free: 106.4 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00533/1.034, allocations: 3.638 MB / 0.7638 GB, free: 106.4 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004069/1.034, allocations: 185.3 kB / 0.7639 GB, free: 106.3 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.581e-05/1.034, allocations: 85.55 kB / 0.764 GB, free: 106.2 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=447): time 6.032e-06/1.034, allocations: 0 / 0.764 GB, free: 106.2 MB / 0.5138 GB Notification: Performance of matching and sorting (n=452): time 0.04287/1.077, allocations: 20.75 MB / 0.7843 GB, free: 101.1 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/1.077, allocations: 98.05 kB / 0.7844 GB, free: 101 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00496/1.082, allocations: 4.501 MB / 0.7888 GB, free: 98.72 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0005679/1.083, allocations: 96.02 kB / 0.7889 GB, free: 98.64 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001789/1.085, allocations: 4.334 MB / 0.7931 GB, free: 95.46 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001044/1.086, allocations: 1.616 MB / 0.7947 GB, free: 94.06 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001469/1.087, allocations: 1.202 MB / 0.7959 GB, free: 93.38 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.763e-05/1.087, allocations: 301.1 kB / 0.7961 GB, free: 93.08 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003529/1.091, allocations: 3.063 MB / 0.7991 GB, free: 91.42 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004122/1.095, allocations: 5.211 MB / 0.8042 GB, free: 86.9 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008311/1.103, allocations: 8.874 MB / 0.8129 GB, free: 80.27 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.019e-05/1.103, allocations: 21.22 kB / 0.8129 GB, free: 80.27 MB / 0.5138 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01313/1.116, allocations: 9.879 MB / 0.8226 GB, free: 71.88 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 4.553e-05/1.116, allocations: 36 kB / 0.8226 GB, free: 71.84 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.259e-05/1.116, allocations: 68 kB / 0.8227 GB, free: 71.77 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003163/1.12, allocations: 1.407 MB / 0.824 GB, free: 70.36 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004317/1.124, allocations: 1.381 MB / 0.8254 GB, free: 68.98 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01334/1.137, allocations: 12.68 MB / 0.8378 GB, free: 56.04 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004274/1.142, allocations: 358.7 kB / 0.8381 GB, free: 55.69 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006888/1.142, allocations: 288 kB / 0.8384 GB, free: 55.41 MB / 0.5138 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.00516/1.148, allocations: 3.896 MB / 0.8422 GB, free: 51.5 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008698/1.148, allocations: 480.9 kB / 0.8426 GB, free: 51.02 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01092/1.159, allocations: 8.518 MB / 0.851 GB, free: 42.45 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007926/1.167, allocations: 6.24 MB / 0.8571 GB, free: 36.19 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/1.167, allocations: 12 kB / 0.8571 GB, free: 36.18 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.252e-05/1.167, allocations: 27.91 kB / 0.8571 GB, free: 36.15 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02181/1.189, allocations: 17.41 MB / 0.8741 GB, free: 18.65 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.63e-05/1.189, allocations: 8 kB / 0.8741 GB, free: 18.64 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002752/1.192, allocations: 0.8074 MB / 0.8749 GB, free: 17.83 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003007/1.195, allocations: 1.29 MB / 0.8761 GB, free: 16.54 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003547/1.195, allocations: 108 kB / 0.8763 GB, free: 16.43 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0119/1.207, allocations: 11.55 MB / 0.8875 GB, free: 4.625 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.335e-06/1.207, allocations: 23.91 kB / 0.8876 GB, free: 4.602 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01585/1.223, allocations: 11.22 MB / 0.8985 GB, free: 9.238 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003313/1.227, allocations: 1.115 MB / 0.8996 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008999/1.227, allocations: 91.98 kB / 0.8997 GB, free: 8.012 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002182/1.23, allocations: 235.8 kB / 0.8999 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006823/1.23, allocations: 323.5 kB / 0.9002 GB, free: 7.465 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000272/1.231, allocations: 136 kB / 0.9003 GB, free: 7.332 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004506/1.235, allocations: 3.115 MB / 0.9034 GB, free: 4.207 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.563e-06/1.235, allocations: 0 / 0.9034 GB, free: 4.207 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005466/1.241, allocations: 1.726 MB / 0.9051 GB, free: 2.48 MB / 0.5294 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.001315/1.242, allocations: 0.5303 MB / 0.9056 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0126/1.255, allocations: 7.991 MB / 0.9134 GB, free: 10.07 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/1.255, allocations: 0 / 0.9134 GB, free: 10.07 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00658/1.261, allocations: 3.946 MB / 0.9172 GB, free: 6.102 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004675/1.266, allocations: 1.045 MB / 0.9183 GB, free: 5.082 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02744/1.293, allocations: 18.27 MB / 0.9361 GB, free: 2.672 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1935/1.487, allocations: 6.501 MB / 0.9425 GB, free: 173.6 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005326/1.492, allocations: 2.122 MB / 0.9445 GB, free: 173.6 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001177/1.493, allocations: 376.3 kB / 0.9449 GB, free: 173.6 MB / 0.5607 GB Notification: Performance of SimCode: time 7.01e-07/1.493, allocations: 0 / 0.9449 GB, free: 173.6 MB / 0.5607 GB Notification: Performance of Templates: time 0.09736/1.591, allocations: 71.97 MB / 1.015 GB, free: 134.2 MB / 0.5607 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.makefile (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 & ./HanserModelica_HanserModelica.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1)