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.0009256/0.0009256, allocations: 169.3 kB / 7.64 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04015/0.04015, allocations: 8.715 MB / 16.79 MB, free: 3.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 221.5 MB / 240.9 MB, free: 13.16 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.001102/0.001102, allocations: 93.06 kB / 293.9 MB, free: 7.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.617e-05/1.62e-05, allocations: 4 kB / 352.6 MB, free: 1.227 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1339, allocations: 52.55 MB / 405.2 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.47/0.6039, allocations: 131.4 MB / 0.524 GB, free: 4.543 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.6042, allocations: 75.97 kB / 0.524 GB, free: 4.469 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.227/1.831, allocations: 350.7 MB / 0.8665 GB, free: 41.12 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.885e-06/1.831, allocations: 0 / 0.8665 GB, free: 41.12 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001261/1.833, allocations: 214.1 kB / 0.8667 GB, free: 41.09 MB / 458.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.03777/1.87, allocations: 9.453 MB / 0.8759 GB, free: 32.54 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/1.87, allocations: 11.98 kB / 0.8759 GB, free: 32.53 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02499/1.895, allocations: 4.272 MB / 0.8801 GB, free: 28.24 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02184/1.917, allocations: 8.414 MB / 0.8883 GB, free: 19.84 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006899/1.918, allocations: 304 kB / 0.8886 GB, free: 19.54 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004686/1.923, allocations: 0.5389 MB / 0.8891 GB, free: 19 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03248/1.955, allocations: 12.53 MB / 0.9014 GB, free: 6.469 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4057/2.361, allocations: 14.29 MB / 0.9153 GB, free: 35.29 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004167/2.361, allocations: 12.56 kB / 0.9153 GB, free: 35.29 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003367/2.365, allocations: 7.719 kB / 0.9153 GB, free: 35.29 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008418/2.366, allocations: 0.747 MB / 0.9161 GB, free: 35.27 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1015/2.467, allocations: 51.44 MB / 0.9663 GB, free: 27.54 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02898/2.496, allocations: 20.33 MB / 0.9861 GB, free: 29.69 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006939/2.503, allocations: 3.51 MB / 0.9896 GB, free: 28.5 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007802/2.504, allocations: 174.6 kB / 0.9897 GB, free: 28.4 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001/2.504, allocations: 87.72 kB / 0.9898 GB, free: 28.33 MB / 474.7 MB Notification: Performance of pre-optimization done (n=453): time 9.338e-06/2.504, allocations: 0 / 0.9898 GB, free: 28.33 MB / 474.7 MB Notification: Performance of matching and sorting (n=458): time 0.04136/2.546, allocations: 16.49 MB / 1.006 GB, free: 21.82 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.034e-05/2.546, allocations: 100.8 kB / 1.006 GB, free: 21.75 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009934/2.556, allocations: 3.577 MB / 1.01 GB, free: 20.39 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001415/2.557, allocations: 25.7 kB / 1.01 GB, free: 20.36 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003517/2.561, allocations: 4.188 MB / 1.014 GB, free: 17.19 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002648/2.563, allocations: 1.492 MB / 1.015 GB, free: 16.02 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001402/2.565, allocations: 1.25 kB / 1.015 GB, free: 16.02 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008718/2.566, allocations: 0.5605 MB / 1.016 GB, free: 15.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005709/2.571, allocations: 3.055 MB / 1.019 GB, free: 14.33 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007466/2.579, allocations: 5.141 MB / 1.024 GB, free: 10.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01096/2.59, allocations: 5.151 MB / 1.029 GB, free: 8.508 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001335/2.59, allocations: 17.09 kB / 1.029 GB, free: 8.508 MB / 474.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.02809/2.618, allocations: 10.27 MB / 1.039 GB, free: 5.133 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002067/2.618, allocations: 36.25 kB / 1.039 GB, free: 5.129 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002278/2.619, allocations: 74.42 kB / 1.039 GB, free: 5.125 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004204/2.623, allocations: 1.372 MB / 1.04 GB, free: 4.859 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006496/2.629, allocations: 1.425 MB / 1.042 GB, free: 4.812 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01819/2.648, allocations: 11.22 MB / 1.053 GB, free: 14.28 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008095/2.656, allocations: 285.1 kB / 1.053 GB, free: 14.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002312/2.658, allocations: 295.6 kB / 1.053 GB, free: 14.21 MB / 490.7 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 () * 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.4%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003246/2.661, allocations: 288.4 kB / 1.053 GB, free: 14.04 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002075/2.663, allocations: 444.9 kB / 1.054 GB, free: 13.81 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01904/2.682, allocations: 9.264 MB / 1.063 GB, free: 10.39 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01308/2.696, allocations: 7.038 MB / 1.07 GB, free: 5.246 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.338e-05/2.696, allocations: 12 kB / 1.07 GB, free: 5.234 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.096e-05/2.696, allocations: 25.41 kB / 1.07 GB, free: 5.234 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03632/2.732, allocations: 17.31 MB / 1.087 GB, free: 7.312 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.105e-05/2.732, allocations: 7.953 kB / 1.087 GB, free: 7.305 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00373/2.736, allocations: 0.835 MB / 1.087 GB, free: 6.625 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003542/2.739, allocations: 1.25 MB / 1.089 GB, free: 5.656 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006387/2.74, allocations: 33.95 kB / 1.089 GB, free: 5.629 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4312/3.171, allocations: 10.28 MB / 1.099 GB, free: 79.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-05/3.171, allocations: 13.66 kB / 1.099 GB, free: 79.1 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02254/3.194, allocations: 12.93 MB / 1.111 GB, free: 77.64 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003702/3.198, allocations: 1.155 MB / 1.113 GB, free: 77.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001309/3.199, allocations: 15.2 kB / 1.113 GB, free: 77.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003107/3.202, allocations: 214.9 kB / 1.113 GB, free: 77.55 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007287/3.203, allocations: 326.9 kB / 1.113 GB, free: 77.54 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003115/3.203, allocations: 132.3 kB / 1.113 GB, free: 77.54 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00478/3.208, allocations: 2.669 MB / 1.116 GB, free: 77.39 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.61e-07/3.208, allocations: 5.75 kB / 1.116 GB, free: 77.39 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009643/3.218, allocations: 1.576 MB / 1.117 GB, free: 77.39 MB / 0.4948 GB 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 () * 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,41.8%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00231/3.22, allocations: 0.6231 MB / 1.118 GB, free: 77.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.015/3.235, allocations: 7.843 MB / 1.126 GB, free: 76.93 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/3.235, allocations: 1.062 kB / 1.126 GB, free: 76.93 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009815/3.245, allocations: 3.967 MB / 1.129 GB, free: 76.64 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00732/3.252, allocations: 0.7528 MB / 1.13 GB, free: 76.62 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0449/3.297, allocations: 15.73 MB / 1.146 GB, free: 73.81 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01283/3.31, allocations: 6.663 MB / 1.152 GB, free: 72.89 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008954/3.319, allocations: 2.144 MB / 1.154 GB, free: 72.72 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002449/3.321, allocations: 381.6 kB / 1.155 GB, free: 72.71 MB / 0.4948 GB Notification: Performance of SimCode: time 8.92e-07/3.321, allocations: 0 / 1.155 GB, free: 72.71 MB / 0.4948 GB Notification: Performance of Templates: time 0.1168/3.438, allocations: 65.89 MB / 1.219 GB, free: 56.58 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)