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.001127/0.001127, allocations: 118.5 kB / 16.37 MB, free: 6.004 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.446/1.446, allocations: 222.9 MB / 240 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.001362/0.001362, allocations: 192.5 kB / 290.3 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03353/0.03353, allocations: 8.795 MB / 349.3 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00253/0.00253, allocations: 78.48 kB / 412.5 MB, free: 41.67 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1205, allocations: 51.57 MB / 464.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.027/0.1476, allocations: 24.85 MB / 488.9 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01874/0.1664, allocations: 8.003 MB / 496.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006409/0.1729, allocations: 183.4 kB / 497.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0205/0.1934, allocations: 8.367 MB / 0.4936 GB, free: 3.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01384/0.2072, allocations: 2.993 MB / 0.4966 GB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007763/0.215, allocations: 1.819 MB / 0.4983 GB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01681/0.2318, allocations: 11.09 MB / 0.5092 GB, free: 4.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3523/0.5841, allocations: 23.27 MB / 0.5319 GB, free: 13.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01126/0.5954, allocations: 5.895 MB / 0.5377 GB, free: 13.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01487/0.6103, allocations: 6.442 MB / 0.544 GB, free: 12.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01044/0.6208, allocations: 1.716 MB / 0.5456 GB, free: 12.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01134/0.6322, allocations: 2.122 MB / 0.5477 GB, free: 12.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009103/0.6414, allocations: 3.39 MB / 0.551 GB, free: 12.17 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01573/0.6571, allocations: 6.356 MB / 0.5572 GB, free: 10.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02588/0.683, allocations: 23.12 MB / 0.5798 GB, free: 148 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.6831, allocations: 0 / 0.5798 GB, free: 148 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.6831, allocations: 0 / 0.5798 GB, free: 148 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007206/0.6838, allocations: 0 / 0.5798 GB, free: 148 kB / 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.05585/0.7397, allocations: 13.38 MB / 0.5929 GB, free: 7.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.7398, allocations: 11.91 kB / 0.5929 GB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03574/0.7755, allocations: 6.262 MB / 0.599 GB, free: 1.871 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01686/0.7924, allocations: 7.244 MB / 0.6061 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008072/0.7933, allocations: 0.721 MB / 0.6068 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004865/0.7981, allocations: 0.9515 MB / 0.6077 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04855/0.8467, allocations: 16.14 MB / 0.6234 GB, free: 9.043 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005434/0.8473, allocations: 11.91 kB / 0.6235 GB, free: 9.031 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004347/0.8516, allocations: 397.1 kB / 0.6238 GB, free: 8.652 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007237/0.8524, allocations: 0.5665 MB / 0.6244 GB, free: 8.086 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04811/0.9005, allocations: 15.11 MB / 0.6391 GB, free: 8.965 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1008/1.001, allocations: 51.99 MB / 0.6899 GB, free: 4.734 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.251/1.252, allocations: 20.11 MB / 0.7096 GB, free: 154.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005911/1.258, allocations: 3.626 MB / 0.7131 GB, free: 154.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004646/1.259, allocations: 186.2 kB / 0.7133 GB, free: 154.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.452e-05/1.259, allocations: 79.34 kB / 0.7133 GB, free: 154 MB / 494.1 MB Notification: Performance of pre-optimization done (n=447): time 7.263e-06/1.259, allocations: 4.75 kB / 0.7134 GB, free: 154 MB / 494.1 MB Notification: Performance of matching and sorting (n=452): time 0.05342/1.312, allocations: 20.62 MB / 0.7335 GB, free: 152.1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/1.312, allocations: 98.02 kB / 0.7336 GB, free: 152 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006618/1.319, allocations: 4.5 MB / 0.738 GB, free: 150.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008632/1.32, allocations: 97.55 kB / 0.7381 GB, free: 150.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002284/1.322, allocations: 4.193 MB / 0.7422 GB, free: 147.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001914/1.324, allocations: 1.537 MB / 0.7437 GB, free: 145.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002033/1.326, allocations: 1.191 MB / 0.7448 GB, free: 145.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.567e-05/1.326, allocations: 301.1 kB / 0.7451 GB, free: 145.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005132/1.331, allocations: 3.066 MB / 0.7481 GB, free: 143.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006049/1.337, allocations: 5.222 MB / 0.7532 GB, free: 140 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01204/1.35, allocations: 8.868 MB / 0.7619 GB, free: 134.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001389/1.35, allocations: 22.84 kB / 0.7619 GB, free: 134.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=794) (initialization): time 0.02031/1.37, allocations: 9.86 MB / 0.7715 GB, free: 129.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001083/1.37, allocations: 32 kB / 0.7715 GB, free: 129.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001682/1.37, allocations: 68 kB / 0.7716 GB, free: 129.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003771/1.374, allocations: 1.401 MB / 0.773 GB, free: 128.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005543/1.38, allocations: 1.386 MB / 0.7743 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01652/1.396, allocations: 12.67 MB / 0.7867 GB, free: 114.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005668/1.402, allocations: 357.2 kB / 0.787 GB, free: 114 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001606/1.404, allocations: 292 kB / 0.7873 GB, free: 113.7 MB / 494.1 MB 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.01203/1.416, allocations: 3.889 MB / 0.7911 GB, free: 109.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002822/1.419, allocations: 454.4 kB / 0.7916 GB, free: 109.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01364/1.432, allocations: 8.518 MB / 0.7999 GB, free: 100.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009352/1.442, allocations: 6.248 MB / 0.806 GB, free: 94.56 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.407e-05/1.442, allocations: 12 kB / 0.806 GB, free: 94.55 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.193e-05/1.442, allocations: 26.23 kB / 0.806 GB, free: 94.52 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03245/1.474, allocations: 17.39 MB / 0.823 GB, free: 77.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.262e-05/1.474, allocations: 12.98 kB / 0.823 GB, free: 77.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002948/1.477, allocations: 0.8035 MB / 0.8238 GB, free: 76.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003144/1.48, allocations: 1.29 MB / 0.8251 GB, free: 74.94 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004259/1.481, allocations: 108 kB / 0.8252 GB, free: 74.83 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01271/1.494, allocations: 11.55 MB / 0.8364 GB, free: 63.03 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/1.494, allocations: 13.09 kB / 0.8364 GB, free: 63.02 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01875/1.512, allocations: 11.2 MB / 0.8474 GB, free: 51.67 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00395/1.516, allocations: 1.089 MB / 0.8484 GB, free: 50.56 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001154/1.518, allocations: 91.98 kB / 0.8485 GB, free: 50.47 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002759/1.52, allocations: 233.6 kB / 0.8488 GB, free: 50.25 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007801/1.521, allocations: 335.5 kB / 0.8491 GB, free: 49.92 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002942/1.521, allocations: 136 kB / 0.8492 GB, free: 49.79 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005101/1.527, allocations: 3.107 MB / 0.8522 GB, free: 46.67 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.044e-06/1.527, allocations: 0 / 0.8522 GB, free: 46.67 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008616/1.535, allocations: 1.723 MB / 0.8539 GB, free: 44.95 MB / 494.1 MB 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.001988/1.537, allocations: 0.5273 MB / 0.8544 GB, free: 44.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01386/1.551, allocations: 7.983 MB / 0.8622 GB, free: 36.61 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.792e-05/1.551, allocations: 1.938 kB / 0.8622 GB, free: 36.61 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008015/1.559, allocations: 3.944 MB / 0.8661 GB, free: 32.64 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008698/1.568, allocations: 1.055 MB / 0.8671 GB, free: 31.62 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04561/1.614, allocations: 18.01 MB / 0.8847 GB, free: 13.51 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2449/1.859, allocations: 6.5 MB / 0.8911 GB, free: 140.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007438/1.866, allocations: 2.12 MB / 0.8931 GB, free: 140.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002012/1.868, allocations: 378.6 kB / 0.8935 GB, free: 140.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.252e-06/1.868, allocations: 0 / 0.8935 GB, free: 140.7 MB / 494.1 MB Notification: Performance of Templates: time 0.1198/1.988, allocations: 69.41 MB / 0.9613 GB, free: 104.3 MB / 494.1 MB 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 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1)