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.01116/0.01116, allocations: 103.5 kB / 15.73 MB, free: 5.996 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.485/1.485, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001573/0.001573, allocations: 188.4 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03399/0.03399, allocations: 8.793 MB / 348.6 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 83.88 kB / 463.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1399, allocations: 51.56 MB / 0.5034 GB, free: 9.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02908/0.169, allocations: 24.86 MB / 0.5277 GB, free: 0.543 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3495/0.5185, allocations: 7.993 MB / 0.5355 GB, free: 4.852 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006916/0.5255, allocations: 181.8 kB / 0.5357 GB, free: 4.852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02019/0.5457, allocations: 8.365 MB / 0.5438 GB, free: 3.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01325/0.5589, allocations: 2.986 MB / 0.5467 GB, free: 3.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008362/0.5673, allocations: 1.806 MB / 0.5485 GB, free: 2.938 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02251/0.5899, allocations: 11.11 MB / 0.5594 GB, free: 14.51 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04385/0.6338, allocations: 23.27 MB / 0.5821 GB, free: 14.19 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01205/0.6459, allocations: 5.918 MB / 0.5879 GB, free: 8.402 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01349/0.6594, allocations: 6.444 MB / 0.5941 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006309/0.6658, allocations: 1.719 MB / 0.5958 GB, free: 416 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01025/0.6761, allocations: 2.129 MB / 0.5979 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007939/0.6841, allocations: 3.393 MB / 0.6012 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01627/0.7004, allocations: 6.353 MB / 0.6074 GB, free: 4.598 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03726/0.7377, allocations: 23.11 MB / 0.63 GB, free: 13.86 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.443e-05/0.7378, allocations: 4 kB / 0.63 GB, free: 13.86 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.7378, allocations: 4 kB / 0.63 GB, free: 13.85 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0009404/0.7387, allocations: 0 / 0.63 GB, free: 13.85 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.05223/0.791, allocations: 13.38 MB / 0.6431 GB, free: 480 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.791, allocations: 8.031 kB / 0.6431 GB, free: 472 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03685/0.8279, allocations: 6.262 MB / 0.6492 GB, free: 10.25 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01885/0.8468, allocations: 7.251 MB / 0.6563 GB, free: 2.98 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001075/0.8479, allocations: 0.7151 MB / 0.657 GB, free: 2.273 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005557/0.8535, allocations: 0.9485 MB / 0.6579 GB, free: 1.336 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05601/0.9095, allocations: 16.13 MB / 0.6736 GB, free: 1.172 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005913/0.9102, allocations: 7.906 kB / 0.6737 GB, free: 1.164 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004684/0.9149, allocations: 398.8 kB / 0.674 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007871/0.9157, allocations: 0.563 MB / 0.6746 GB, free: 224 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04297/0.9587, allocations: 15.1 MB / 0.6893 GB, free: 1.094 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.714/1.673, allocations: 52.01 MB / 0.7401 GB, free: 120.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02192/1.695, allocations: 20.1 MB / 0.7597 GB, free: 106.7 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008519/1.703, allocations: 3.637 MB / 0.7633 GB, free: 106.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005896/1.704, allocations: 186.6 kB / 0.7635 GB, free: 106.6 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.74e-05/1.704, allocations: 77.28 kB / 0.7636 GB, free: 106.5 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=447): time 6.653e-06/1.704, allocations: 0 / 0.7636 GB, free: 106.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=452): time 0.0493/1.753, allocations: 20.63 MB / 0.7837 GB, free: 101.4 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/1.753, allocations: 100.6 kB / 0.7838 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005964/1.759, allocations: 4.5 MB / 0.7882 GB, free: 98.97 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009083/1.76, allocations: 101 kB / 0.7883 GB, free: 98.88 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00245/1.763, allocations: 4.196 MB / 0.7924 GB, free: 95.23 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001978/1.765, allocations: 1.531 MB / 0.7939 GB, free: 93.9 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002057/1.767, allocations: 1.19 MB / 0.795 GB, free: 93.22 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 7.145e-05/1.767, allocations: 308.9 kB / 0.7953 GB, free: 92.92 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004542/1.771, allocations: 3.056 MB / 0.7983 GB, free: 91.27 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006529/1.778, allocations: 5.217 MB / 0.8034 GB, free: 86.76 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01241/1.79, allocations: 8.865 MB / 0.8121 GB, free: 80.14 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.567e-05/1.791, allocations: 19.81 kB / 0.8121 GB, free: 80.14 MB / 0.5138 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.0188/1.809, allocations: 9.861 MB / 0.8217 GB, free: 72 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.483e-05/1.809, allocations: 36 kB / 0.8218 GB, free: 71.96 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001665/1.81, allocations: 70.91 kB / 0.8218 GB, free: 71.89 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003691/1.813, allocations: 1.403 MB / 0.8232 GB, free: 70.49 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005778/1.819, allocations: 1.392 MB / 0.8245 GB, free: 69.09 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01522/1.834, allocations: 12.66 MB / 0.8369 GB, free: 56.17 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005405/1.84, allocations: 359.5 kB / 0.8373 GB, free: 55.82 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001265/1.841, allocations: 292 kB / 0.8375 GB, free: 55.54 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.007709/1.849, allocations: 3.884 MB / 0.8413 GB, free: 51.64 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00136/1.85, allocations: 462.3 kB / 0.8418 GB, free: 51.18 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01192/1.862, allocations: 8.51 MB / 0.8501 GB, free: 42.61 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008761/1.871, allocations: 6.252 MB / 0.8562 GB, free: 36.34 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.907e-05/1.871, allocations: 18.67 kB / 0.8562 GB, free: 36.32 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.994e-05/1.871, allocations: 23.91 kB / 0.8562 GB, free: 36.3 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02996/1.901, allocations: 17.4 MB / 0.8732 GB, free: 18.82 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/1.901, allocations: 8 kB / 0.8732 GB, free: 18.81 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003175/1.904, allocations: 0.8044 MB / 0.874 GB, free: 18 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003335/1.908, allocations: 1.294 MB / 0.8753 GB, free: 16.71 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006119/1.908, allocations: 104 kB / 0.8754 GB, free: 16.61 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01295/1.921, allocations: 11.54 MB / 0.8866 GB, free: 4.801 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.283e-06/1.921, allocations: 11.94 kB / 0.8866 GB, free: 4.789 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01815/1.939, allocations: 11.2 MB / 0.8976 GB, free: 9.445 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00349/1.943, allocations: 1.093 MB / 0.8987 GB, free: 8.328 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001134/1.944, allocations: 87.98 kB / 0.8987 GB, free: 8.242 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002793/1.947, allocations: 239.8 kB / 0.899 GB, free: 8.008 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007794/1.948, allocations: 327.5 kB / 0.8993 GB, free: 7.688 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003647/1.948, allocations: 140 kB / 0.8994 GB, free: 7.551 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006229/1.954, allocations: 3.103 MB / 0.9024 GB, free: 4.438 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.8e-07/1.954, allocations: 0 / 0.9024 GB, free: 4.438 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009483/1.964, allocations: 1.725 MB / 0.9041 GB, free: 2.719 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.002097/1.966, allocations: 0.5423 MB / 0.9047 GB, free: 2.328 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01565/1.982, allocations: 7.968 MB / 0.9124 GB, free: 10.34 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.271e-05/1.982, allocations: 0 / 0.9124 GB, free: 10.34 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00897/1.991, allocations: 3.95 MB / 0.9163 GB, free: 6.363 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00663/1.997, allocations: 1.042 MB / 0.9173 GB, free: 5.344 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03685/2.034, allocations: 18.02 MB / 0.9349 GB, free: 3.215 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2745/2.309, allocations: 6.5 MB / 0.9413 GB, free: 174.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006394/2.315, allocations: 2.119 MB / 0.9433 GB, free: 174.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001656/2.317, allocations: 375.6 kB / 0.9437 GB, free: 174.9 MB / 0.5607 GB Notification: Performance of SimCode: time 9.62e-07/2.317, allocations: 0 / 0.9437 GB, free: 174.9 MB / 0.5607 GB Notification: Performance of Templates: time 0.1248/2.442, allocations: 72.27 MB / 1.014 GB, free: 135.3 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)