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.00114/0.00114, allocations: 107.9 kB / 16.37 MB, free: 6.477 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.387/1.387, allocations: 222.9 MB / 240 MB, free: 4.551 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.001385/0.001385, allocations: 196.4 kB / 290.3 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03571/0.03572, allocations: 8.798 MB / 349.3 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001706, allocations: 82.89 kB / 412.5 MB, free: 41.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08881/0.09054, allocations: 51.56 MB / 464.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02615/0.1167, allocations: 24.86 MB / 489 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01752/0.1343, allocations: 7.999 MB / 497 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005235/0.1396, allocations: 183.4 kB / 497.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01956/0.1592, allocations: 8.372 MB / 0.4937 GB, free: 4.059 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01039/0.1696, allocations: 2.978 MB / 0.4966 GB, free: 1.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005353/0.175, allocations: 1.826 MB / 0.4983 GB, free: 15.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01612/0.1911, allocations: 11.09 MB / 0.5092 GB, free: 4.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2541/0.4453, allocations: 23.27 MB / 0.5319 GB, free: 13.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01072/0.456, allocations: 5.898 MB / 0.5377 GB, free: 13.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01221/0.4683, allocations: 6.442 MB / 0.544 GB, free: 12.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006663/0.475, allocations: 1.719 MB / 0.5456 GB, free: 12.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009751/0.4847, allocations: 2.123 MB / 0.5477 GB, free: 12.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007541/0.4923, allocations: 3.388 MB / 0.551 GB, free: 12.17 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01392/0.5063, allocations: 6.36 MB / 0.5572 GB, free: 10.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02518/0.5315, allocations: 23.11 MB / 0.5798 GB, free: 204 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.5315, allocations: 0 / 0.5798 GB, free: 204 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5315, allocations: 0 / 0.5798 GB, free: 204 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006976/0.5322, allocations: 0 / 0.5798 GB, free: 204 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.0461/0.5783, allocations: 13.39 MB / 0.5929 GB, free: 7.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.5784, allocations: 7.281 kB / 0.5929 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03651/0.6149, allocations: 6.266 MB / 0.599 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01953/0.6345, allocations: 7.253 MB / 0.6061 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008729/0.6354, allocations: 0.7191 MB / 0.6068 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004482/0.6399, allocations: 0.9391 MB / 0.6077 GB, free: 9.324 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04477/0.6847, allocations: 16.13 MB / 0.6234 GB, free: 9.164 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004599/0.6852, allocations: 19.55 kB / 0.6235 GB, free: 9.148 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003421/0.6886, allocations: 400.5 kB / 0.6238 GB, free: 8.77 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006717/0.6893, allocations: 0.563 MB / 0.6244 GB, free: 8.203 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03448/0.7238, allocations: 15.1 MB / 0.6391 GB, free: 9.086 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1039/0.8278, allocations: 51.99 MB / 0.6899 GB, free: 4.852 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2415/1.069, allocations: 20.1 MB / 0.7095 GB, free: 154.4 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006063/1.075, allocations: 3.638 MB / 0.7131 GB, free: 154.3 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003592/1.076, allocations: 183.3 kB / 0.7133 GB, free: 154.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.275e-05/1.076, allocations: 80.84 kB / 0.7133 GB, free: 154.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=447): time 5.931e-06/1.076, allocations: 0 / 0.7133 GB, free: 154.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=452): time 0.04697/1.123, allocations: 20.63 MB / 0.7335 GB, free: 152.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/1.123, allocations: 101 kB / 0.7336 GB, free: 152.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005568/1.128, allocations: 4.499 MB / 0.738 GB, free: 150.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003848/1.129, allocations: 96.48 kB / 0.7381 GB, free: 150.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001862/1.131, allocations: 4.192 MB / 0.7422 GB, free: 147.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001041/1.132, allocations: 1.533 MB / 0.7437 GB, free: 146.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001628/1.133, allocations: 1.198 MB / 0.7448 GB, free: 145.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.126e-05/1.133, allocations: 301.1 kB / 0.7451 GB, free: 145.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004126/1.138, allocations: 3.063 MB / 0.7481 GB, free: 144.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004558/1.142, allocations: 5.216 MB / 0.7532 GB, free: 140.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008688/1.151, allocations: 8.869 MB / 0.7619 GB, free: 134.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.893e-05/1.151, allocations: 27.5 kB / 0.7619 GB, free: 134.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01386/1.165, allocations: 9.856 MB / 0.7715 GB, free: 129.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/1.165, allocations: 32 kB / 0.7716 GB, free: 129.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.61e-05/1.165, allocations: 71.84 kB / 0.7716 GB, free: 129.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003269/1.168, allocations: 1.4 MB / 0.773 GB, free: 128.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004591/1.173, allocations: 1.389 MB / 0.7743 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0136/1.186, allocations: 12.65 MB / 0.7867 GB, free: 114.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004482/1.191, allocations: 359.8 kB / 0.787 GB, free: 114.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007155/1.192, allocations: 300 kB / 0.7873 GB, free: 113.8 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.005998/1.198, allocations: 3.893 MB / 0.7911 GB, free: 109.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/1.199, allocations: 458.4 kB / 0.7916 GB, free: 109.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01171/1.211, allocations: 8.507 MB / 0.7999 GB, free: 100.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009384/1.22, allocations: 6.252 MB / 0.806 GB, free: 94.64 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.822e-05/1.22, allocations: 12 kB / 0.806 GB, free: 94.63 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.305e-05/1.22, allocations: 20.67 kB / 0.806 GB, free: 94.61 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0324/1.253, allocations: 17.4 MB / 0.823 GB, free: 77.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-05/1.253, allocations: 8 kB / 0.823 GB, free: 77.13 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003441/1.256, allocations: 0.8035 MB / 0.8238 GB, free: 76.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003452/1.26, allocations: 1.29 MB / 0.8251 GB, free: 75.03 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008485/1.26, allocations: 99.97 kB / 0.8252 GB, free: 74.93 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0137/1.274, allocations: 11.55 MB / 0.8364 GB, free: 63.11 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.268e-06/1.274, allocations: 15.94 kB / 0.8365 GB, free: 63.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01944/1.294, allocations: 11.19 MB / 0.8474 GB, free: 51.77 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003457/1.297, allocations: 1.093 MB / 0.8484 GB, free: 50.65 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001482/1.299, allocations: 92 kB / 0.8485 GB, free: 50.56 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003454/1.302, allocations: 231.8 kB / 0.8488 GB, free: 50.33 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001084/1.303, allocations: 331.5 kB / 0.8491 GB, free: 50.01 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000611/1.304, allocations: 140 kB / 0.8492 GB, free: 49.87 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005747/1.31, allocations: 3.106 MB / 0.8522 GB, free: 46.76 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.81e-07/1.31, allocations: 0 / 0.8522 GB, free: 46.76 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007269/1.317, allocations: 1.728 MB / 0.8539 GB, free: 45.04 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.001746/1.319, allocations: 0.5275 MB / 0.8544 GB, free: 44.69 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01359/1.332, allocations: 7.981 MB / 0.8622 GB, free: 36.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/1.332, allocations: 4 kB / 0.8622 GB, free: 36.69 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006575/1.339, allocations: 3.938 MB / 0.8661 GB, free: 32.73 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006376/1.345, allocations: 1.051 MB / 0.8671 GB, free: 31.72 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03434/1.38, allocations: 18.02 MB / 0.8847 GB, free: 13.61 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2171/1.597, allocations: 6.504 MB / 0.8911 GB, free: 140.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006176/1.603, allocations: 2.122 MB / 0.8931 GB, free: 140.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001398/1.605, allocations: 376 kB / 0.8935 GB, free: 140.6 MB / 494.1 MB Notification: Performance of SimCode: time 1.483e-06/1.605, allocations: 0 / 0.8935 GB, free: 140.6 MB / 494.1 MB Notification: Performance of Templates: time 0.1088/1.713, allocations: 69.4 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 gbode -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1)