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.0009646/0.0009646, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.459/1.459, allocations: 223.2 MB / 238.9 MB, free: 5.48 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.002067/0.002067, allocations: 181 kB / 290.2 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03301/0.03301, allocations: 8.797 MB / 350.1 MB, free: 4.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006224/0.0006226, allocations: 10.3 kB / 413.1 MB, free: 43.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.142, allocations: 52.56 MB / 465.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02139/0.1634, allocations: 19.96 MB / 485.6 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0179/0.1814, allocations: 7.526 MB / 493.1 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005882/0.1873, allocations: 155.5 kB / 493.3 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006694/0.1941, allocations: 1.539 MB / 494.8 MB, free: 292 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009813/0.2039, allocations: 2.537 MB / 497.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005309/0.2093, allocations: 1.239 MB / 498.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01784/0.2271, allocations: 10.13 MB / 0.4968 GB, free: 2.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03476/0.2619, allocations: 19.08 MB / 0.5154 GB, free: 15.19 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008324/0.2703, allocations: 3.988 MB / 0.5193 GB, free: 11.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008604/0.2789, allocations: 4.304 MB / 0.5235 GB, free: 6.867 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003086/0.2821, allocations: 0.6602 MB / 0.5242 GB, free: 6.207 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006368/0.2885, allocations: 0.9878 MB / 0.5251 GB, free: 5.219 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004862/0.2934, allocations: 2.033 MB / 0.5271 GB, free: 3.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006556/0.3, allocations: 2.133 MB / 0.5292 GB, free: 1.035 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2717/0.5716, allocations: 19.55 MB / 0.5483 GB, free: 21.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.5717, allocations: 2.438 kB / 0.5483 GB, free: 21.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.867e-06/0.5717, allocations: 0 / 0.5483 GB, free: 21.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.001108/0.5728, allocations: 1.375 kB / 0.5483 GB, free: 21.73 MB / 366.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.04034/0.6132, allocations: 11.27 MB / 0.5593 GB, free: 16.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.6132, allocations: 14.75 kB / 0.5593 GB, free: 16.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0353/0.6486, allocations: 6.162 MB / 0.5653 GB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0179/0.6665, allocations: 6.995 MB / 0.5722 GB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001019/0.6676, allocations: 0.7191 MB / 0.5729 GB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005922/0.6735, allocations: 0.94 MB / 0.5738 GB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04945/0.723, allocations: 15.99 MB / 0.5894 GB, free: 5.891 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006166/0.7236, allocations: 15.47 kB / 0.5894 GB, free: 5.879 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005189/0.7288, allocations: 397.5 kB / 0.5898 GB, free: 5.801 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008646/0.7297, allocations: 0.5668 MB / 0.5904 GB, free: 5.273 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03963/0.7694, allocations: 15.03 MB / 0.605 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.126/0.8954, allocations: 52.68 MB / 0.6565 GB, free: 5.254 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02322/0.9186, allocations: 20.04 MB / 0.6761 GB, free: 15.26 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007937/0.9195, allocations: 185.8 kB / 0.6762 GB, free: 15.07 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001053/0.9196, allocations: 89.64 kB / 0.6763 GB, free: 14.98 MB / 462.1 MB Notification: Performance of pre-optimization done (n=453): time 7.705e-06/0.9196, allocations: 0 / 0.6763 GB, free: 14.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=458): time 0.0673/0.9869, allocations: 20.89 MB / 0.6967 GB, free: 9.992 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.329e-05/0.9871, allocations: 103 kB / 0.6968 GB, free: 9.879 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00947/0.9966, allocations: 4.422 MB / 0.7011 GB, free: 5.434 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001081/0.9977, allocations: 101.7 kB / 0.7012 GB, free: 5.328 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003573/1.001, allocations: 4.184 MB / 0.7053 GB, free: 1.117 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2784/1.28, allocations: 1.552 MB / 0.7068 GB, free: 155.4 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006665/1.28, allocations: 126.1 kB / 0.707 GB, free: 155.4 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004697/1.281, allocations: 0.5533 MB / 0.7075 GB, free: 155.1 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005923/1.287, allocations: 3.082 MB / 0.7105 GB, free: 155.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008319/1.295, allocations: 5.19 MB / 0.7156 GB, free: 151.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006937/1.302, allocations: 4.277 MB / 0.7198 GB, free: 149.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.214e-05/1.302, allocations: 19.75 kB / 0.7198 GB, free: 149.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01882/1.321, allocations: 9.869 MB / 0.7294 GB, free: 145.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.98e-05/1.321, allocations: 32.97 kB / 0.7294 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001423/1.321, allocations: 70.44 kB / 0.7295 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003471/1.325, allocations: 1.375 MB / 0.7308 GB, free: 145.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00553/1.33, allocations: 1.387 MB / 0.7322 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01615/1.347, allocations: 11.93 MB / 0.7439 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006148/1.353, allocations: 350.2 kB / 0.7442 GB, free: 136.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001649/1.354, allocations: 295.3 kB / 0.7445 GB, free: 136.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 311 * 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 (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01007/1.365, allocations: 3.89 MB / 0.7483 GB, free: 133.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001779/1.366, allocations: 464.3 kB / 0.7487 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01659/1.383, allocations: 8.579 MB / 0.7571 GB, free: 125.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0106/1.394, allocations: 6.274 MB / 0.7632 GB, free: 120 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-05/1.394, allocations: 12 kB / 0.7632 GB, free: 120 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.159e-05/1.394, allocations: 23.91 kB / 0.7633 GB, free: 120 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0335/1.427, allocations: 17.62 MB / 0.7805 GB, free: 102.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.008e-05/1.427, allocations: 8 kB / 0.7805 GB, free: 102.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003211/1.431, allocations: 0.812 MB / 0.7813 GB, free: 101.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003111/1.434, allocations: 1.266 MB / 0.7825 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006616/1.434, allocations: 112 kB / 0.7826 GB, free: 100.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01281/1.447, allocations: 10.84 MB / 0.7932 GB, free: 88.98 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/1.447, allocations: 16 kB / 0.7932 GB, free: 88.96 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0171/1.464, allocations: 11.97 MB / 0.8049 GB, free: 76.66 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003336/1.468, allocations: 1.1 MB / 0.806 GB, free: 75.53 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/1.469, allocations: 91.95 kB / 0.8061 GB, free: 75.44 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002794/1.472, allocations: 236 kB / 0.8063 GB, free: 75.21 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006216/1.472, allocations: 330.5 kB / 0.8066 GB, free: 74.89 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002663/1.473, allocations: 140 kB / 0.8067 GB, free: 74.75 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004777/1.477, allocations: 3.048 MB / 0.8097 GB, free: 71.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.477, allocations: 0 / 0.8097 GB, free: 71.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008603/1.486, allocations: 1.716 MB / 0.8114 GB, free: 69.98 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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 (418): * Single equations (assignments): 412 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,44.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002212/1.488, allocations: 0.5469 MB / 0.8119 GB, free: 69.59 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01384/1.502, allocations: 7.99 MB / 0.8197 GB, free: 61.59 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/1.502, allocations: 4 kB / 0.8197 GB, free: 61.58 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007176/1.509, allocations: 3.958 MB / 0.8236 GB, free: 57.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005466/1.515, allocations: 0.9294 MB / 0.8245 GB, free: 56.68 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03643/1.551, allocations: 21.4 MB / 0.8454 GB, free: 35.16 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006992/1.558, allocations: 6.672 MB / 0.8519 GB, free: 28.45 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0064/1.565, allocations: 2.12 MB / 0.854 GB, free: 26.32 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001137/1.566, allocations: 375.4 kB / 0.8543 GB, free: 25.96 MB / 478.1 MB Notification: Performance of SimCode: time 2.294e-06/1.566, allocations: 4 kB / 0.8543 GB, free: 25.96 MB / 478.1 MB Notification: Performance of Templates: time 0.4008/1.967, allocations: 69.2 MB / 0.9219 GB, free: 151.1 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: