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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0405/0.0405, allocations: 8.702 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 221.4 MB / 246 MB, free: 3.621 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000982/0.0009822, allocations: 87.92 kB / 299.1 MB, free: 3.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.404e-05/3.406e-05, allocations: 11.98 kB / 359.5 MB, free: 6.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2757, allocations: 52.53 MB / 412.1 MB, free: 22.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4485/0.7242, allocations: 132 MB / 0.5313 GB, free: 40.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002001/0.7244, allocations: 81.89 kB / 0.5314 GB, free: 40.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.485/2.21, allocations: 354.4 MB / 0.8775 GB, free: 53.24 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.835e-06/2.21, allocations: 3.562 kB / 0.8775 GB, free: 53.24 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0009982/2.211, allocations: 219.2 kB / 0.8777 GB, free: 53.22 MB / 474.7 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.05973/2.271, allocations: 9.459 MB / 0.8869 GB, free: 50.38 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.26e-05/2.271, allocations: 11 kB / 0.8869 GB, free: 50.38 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0442/2.315, allocations: 4.276 MB / 0.8911 GB, free: 49.83 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03745/2.352, allocations: 8.431 MB / 0.8994 GB, free: 48.84 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001357/2.354, allocations: 0.6827 MB / 0.9 GB, free: 48.82 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006183/2.36, allocations: 0.9064 MB / 0.9009 GB, free: 48.81 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06501/2.425, allocations: 15.76 MB / 0.9163 GB, free: 47.7 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006153/2.426, allocations: 21.38 kB / 0.9163 GB, free: 47.69 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004807/2.431, allocations: 394.8 kB / 0.9167 GB, free: 47.69 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001335/2.432, allocations: 0.7501 MB / 0.9174 GB, free: 47.66 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04574/2.478, allocations: 13.79 MB / 0.9309 GB, free: 46.59 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09951/2.577, allocations: 52.52 MB / 0.9822 GB, free: 15.08 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02343/2.601, allocations: 19.98 MB / 1.002 GB, free: 10.45 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006872/2.608, allocations: 3.569 MB / 1.005 GB, free: 7.211 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006812/2.609, allocations: 181 kB / 1.005 GB, free: 7.043 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001202/2.609, allocations: 83.41 kB / 1.005 GB, free: 6.953 MB / 490.7 MB Notification: Performance of pre-optimization done (n=453): time 6.842e-06/2.609, allocations: 0 / 1.005 GB, free: 6.953 MB / 490.7 MB Notification: Performance of matching and sorting (n=458): time 0.03795/2.647, allocations: 14.12 MB / 1.019 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.589e-05/2.647, allocations: 98.97 kB / 1.019 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008964/2.656, allocations: 3.94 MB / 1.023 GB, free: 8.016 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001303/2.657, allocations: 97.7 kB / 1.023 GB, free: 7.914 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003987/2.661, allocations: 4.182 MB / 1.027 GB, free: 4.199 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002771/2.664, allocations: 1.556 MB / 1.029 GB, free: 2.801 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006941/2.665, allocations: 124 kB / 1.029 GB, free: 2.68 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004805/2.665, allocations: 0.5556 MB / 1.03 GB, free: 2.191 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00722/2.672, allocations: 3.171 MB / 1.033 GB, free: 0 / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.327/2.999, allocations: 5.105 MB / 1.038 GB, free: 80.79 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006345/3.006, allocations: 4.205 MB / 1.042 GB, free: 80.73 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.088e-05/3.006, allocations: 21.22 kB / 1.042 GB, free: 80.73 MB / 0.4948 GB Notification: Performance of matching and sorting (n=800) (initialization): time 0.02106/3.027, allocations: 9.683 MB / 1.051 GB, free: 80.59 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/3.027, allocations: 36.8 kB / 1.051 GB, free: 80.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001458/3.027, allocations: 67.53 kB / 1.051 GB, free: 80.59 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003557/3.031, allocations: 1.379 MB / 1.053 GB, free: 80.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005265/3.036, allocations: 1.383 MB / 1.054 GB, free: 80.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01416/3.05, allocations: 11.58 MB / 1.065 GB, free: 77.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004932/3.055, allocations: 364.4 kB / 1.066 GB, free: 77.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009751/3.056, allocations: 291.2 kB / 1.066 GB, free: 77.84 MB / 0.4948 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 () * 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.0009873/3.057, allocations: 495.7 kB / 1.066 GB, free: 77.73 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008529/3.058, allocations: 461.8 kB / 1.067 GB, free: 77.73 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01228/3.07, allocations: 8.434 MB / 1.075 GB, free: 77.4 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009705/3.08, allocations: 6.137 MB / 1.081 GB, free: 77.22 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.684e-05/3.08, allocations: 14.38 kB / 1.081 GB, free: 77.22 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-05/3.08, allocations: 25.98 kB / 1.081 GB, free: 77.22 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02689/3.107, allocations: 17.82 MB / 1.098 GB, free: 75.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-05/3.107, allocations: 6.094 kB / 1.099 GB, free: 75.84 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003215/3.11, allocations: 0.7974 MB / 1.099 GB, free: 75.84 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003252/3.114, allocations: 1.249 MB / 1.101 GB, free: 75.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005151/3.114, allocations: 107 kB / 1.101 GB, free: 75.63 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0123/3.126, allocations: 10.52 MB / 1.111 GB, free: 69.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.867e-06/3.126, allocations: 14.41 kB / 1.111 GB, free: 69.34 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01651/3.143, allocations: 11.96 MB / 1.123 GB, free: 63.38 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002789/3.146, allocations: 1.137 MB / 1.124 GB, free: 62.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006879/3.147, allocations: 89.44 kB / 1.124 GB, free: 62.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002216/3.149, allocations: 249.2 kB / 1.124 GB, free: 62.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006514/3.149, allocations: 330.2 kB / 1.124 GB, free: 62.54 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002785/3.15, allocations: 140.9 kB / 1.124 GB, free: 62.51 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004375/3.154, allocations: 2.994 MB / 1.127 GB, free: 61.37 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.61e-07/3.154, allocations: 0 / 1.127 GB, free: 61.37 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007307/3.161, allocations: 1.783 MB / 1.129 GB, free: 61.17 MB / 0.4948 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (420): * Single equations (assignments): 414 * 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.001849/3.163, allocations: 0.8295 MB / 1.13 GB, free: 60.93 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01336/3.177, allocations: 7.812 MB / 1.138 GB, free: 57.85 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/3.177, allocations: 2.219 kB / 1.138 GB, free: 57.85 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006903/3.184, allocations: 3.881 MB / 1.141 GB, free: 56.15 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004855/3.189, allocations: 0.9367 MB / 1.142 GB, free: 55.64 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03017/3.219, allocations: 15.72 MB / 1.158 GB, free: 41.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01022/3.229, allocations: 6.665 MB / 1.164 GB, free: 36.52 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006572/3.236, allocations: 2.135 MB / 1.166 GB, free: 35.13 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001391/3.237, allocations: 387.2 kB / 1.167 GB, free: 34.78 MB / 0.4948 GB Notification: Performance of SimCode: time 1.674e-06/3.237, allocations: 0 / 1.167 GB, free: 34.78 MB / 0.4948 GB Notification: Performance of Templates: time 0.4634/3.7, allocations: 73.59 MB / 1.238 GB, free: 60.8 MB / 0.4948 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)