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.001523/0.001524, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 239.2 MB, free: 4.574 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.001377/0.001377, allocations: 196.4 kB / 289.5 MB, free: 2.305 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03335/0.03335, allocations: 8.789 MB / 348.5 MB, free: 4.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 78.03 kB / 411.1 MB, free: 41.96 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1303, allocations: 51.56 MB / 462.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02893/0.1593, allocations: 24.85 MB / 487.5 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01989/0.1792, allocations: 8.003 MB / 495.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009074/0.1884, allocations: 187.4 kB / 495.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02053/0.2089, allocations: 8.371 MB / 0.4922 GB, free: 4.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01258/0.2215, allocations: 2.981 MB / 0.4951 GB, free: 1.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006834/0.2284, allocations: 1.819 MB / 0.4969 GB, free: 15.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01682/0.2452, allocations: 11.02 MB / 0.5077 GB, free: 4.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3528/0.5981, allocations: 23.44 MB / 0.5306 GB, free: 15.22 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01415/0.6123, allocations: 5.882 MB / 0.5363 GB, free: 14.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01456/0.6269, allocations: 6.532 MB / 0.5427 GB, free: 13.85 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008465/0.6354, allocations: 1.716 MB / 0.5444 GB, free: 13.85 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01095/0.6463, allocations: 2.129 MB / 0.5465 GB, free: 13.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009878/0.6563, allocations: 3.363 MB / 0.5497 GB, free: 13.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01786/0.6742, allocations: 6.356 MB / 0.5559 GB, free: 12.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03238/0.7066, allocations: 22.99 MB / 0.5784 GB, free: 1.199 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.05e-05/0.7066, allocations: 0 / 0.5784 GB, free: 1.199 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.7066, allocations: 0 / 0.5784 GB, free: 1.199 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0008946/0.7075, allocations: 3.984 kB / 0.5784 GB, free: 1.195 MB / 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.05253/0.7601, allocations: 13.44 MB / 0.5915 GB, free: 8.367 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.7602, allocations: 12.03 kB / 0.5915 GB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03688/0.797, allocations: 6.216 MB / 0.5976 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01691/0.814, allocations: 7.064 MB / 0.6045 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007968/0.8148, allocations: 0.7247 MB / 0.6052 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005097/0.8199, allocations: 0.9505 MB / 0.6061 GB, free: 9.711 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05262/0.8726, allocations: 16.14 MB / 0.6219 GB, free: 9.551 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003617/0.873, allocations: 17.12 kB / 0.6219 GB, free: 9.535 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004416/0.8774, allocations: 400.8 kB / 0.6223 GB, free: 9.152 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006073/0.878, allocations: 0.5553 MB / 0.6228 GB, free: 8.594 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04192/0.92, allocations: 15.1 MB / 0.6376 GB, free: 9.484 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1123/1.032, allocations: 52.62 MB / 0.689 GB, free: 4.629 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2832/1.316, allocations: 20.11 MB / 0.7086 GB, free: 154 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006108/1.322, allocations: 3.629 MB / 0.7121 GB, free: 154 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004191/1.322, allocations: 183.8 kB / 0.7123 GB, free: 153.9 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.243e-05/1.322, allocations: 75 kB / 0.7124 GB, free: 153.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=447): time 6.232e-06/1.322, allocations: 0 / 0.7124 GB, free: 153.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=452): time 0.05277/1.375, allocations: 20.64 MB / 0.7325 GB, free: 151.8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/1.375, allocations: 97.45 kB / 0.7326 GB, free: 151.8 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006888/1.382, allocations: 4.492 MB / 0.737 GB, free: 150.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001101/1.383, allocations: 98.77 kB / 0.7371 GB, free: 150.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002509/1.386, allocations: 4.192 MB / 0.7412 GB, free: 146.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00179/1.387, allocations: 1.538 MB / 0.7427 GB, free: 145.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00192/1.389, allocations: 1.195 MB / 0.7439 GB, free: 145.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.042e-05/1.389, allocations: 305 kB / 0.7442 GB, free: 144.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004483/1.394, allocations: 3.06 MB / 0.7472 GB, free: 143.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005832/1.4, allocations: 5.217 MB / 0.7523 GB, free: 139.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01225/1.412, allocations: 8.868 MB / 0.7609 GB, free: 133.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.972e-05/1.412, allocations: 26.53 kB / 0.7609 GB, free: 133.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01846/1.431, allocations: 9.853 MB / 0.7706 GB, free: 129.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.905e-05/1.431, allocations: 40.62 kB / 0.7706 GB, free: 129.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001226/1.431, allocations: 68.75 kB / 0.7707 GB, free: 129.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003732/1.435, allocations: 1.399 MB / 0.772 GB, free: 128.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005599/1.44, allocations: 1.391 MB / 0.7734 GB, free: 127 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01634/1.457, allocations: 12.67 MB / 0.7858 GB, free: 114 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007191/1.464, allocations: 347.5 kB / 0.7861 GB, free: 113.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002058/1.466, allocations: 296.6 kB / 0.7864 GB, free: 113.4 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.01012/1.476, allocations: 3.9 MB / 0.7902 GB, free: 109.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002092/1.478, allocations: 458.3 kB / 0.7906 GB, free: 109 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01673/1.495, allocations: 8.514 MB / 0.7989 GB, free: 100.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0117/1.507, allocations: 6.249 MB / 0.805 GB, free: 94.22 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.062e-05/1.507, allocations: 12 kB / 0.8051 GB, free: 94.21 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.85e-05/1.507, allocations: 19.92 kB / 0.8051 GB, free: 94.19 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04189/1.549, allocations: 17.66 MB / 0.8223 GB, free: 76.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.439e-05/1.549, allocations: 8 kB / 0.8223 GB, free: 76.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00362/1.552, allocations: 0.8079 MB / 0.8231 GB, free: 75.59 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003569/1.556, allocations: 1.297 MB / 0.8244 GB, free: 74.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008726/1.557, allocations: 108 kB / 0.8245 GB, free: 74.19 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01481/1.572, allocations: 11.56 MB / 0.8358 GB, free: 62.38 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.754e-06/1.572, allocations: 11.94 kB / 0.8358 GB, free: 62.36 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01898/1.591, allocations: 11.18 MB / 0.8467 GB, free: 51.04 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003351/1.594, allocations: 1.089 MB / 0.8478 GB, free: 49.92 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001845/1.596, allocations: 92 kB / 0.8479 GB, free: 49.83 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003895/1.6, allocations: 231.8 kB / 0.8481 GB, free: 49.61 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00118/1.601, allocations: 331.5 kB / 0.8484 GB, free: 49.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006515/1.602, allocations: 140 kB / 0.8485 GB, free: 49.14 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006747/1.609, allocations: 3.107 MB / 0.8516 GB, free: 46.03 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.4e-07/1.609, allocations: 0 / 0.8516 GB, free: 46.03 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01013/1.619, allocations: 1.725 MB / 0.8532 GB, free: 44.31 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.002525/1.621, allocations: 0.5433 MB / 0.8538 GB, free: 43.95 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.03238/1.654, allocations: 14.97 MB / 0.8684 GB, free: 29 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/1.654, allocations: 4 kB / 0.8684 GB, free: 28.99 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007761/1.662, allocations: 3.942 MB / 0.8723 GB, free: 25.02 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009466/1.671, allocations: 1.046 MB / 0.8733 GB, free: 24.01 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2903/1.961, allocations: 18.21 MB / 0.8911 GB, free: 143 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0147/1.976, allocations: 6.504 MB / 0.8974 GB, free: 142.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007386/1.984, allocations: 2.121 MB / 0.8995 GB, free: 142.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001868/1.986, allocations: 382.5 kB / 0.8998 GB, free: 142.1 MB / 494.1 MB Notification: Performance of SimCode: time 1.312e-06/1.986, allocations: 0.9688 kB / 0.8998 GB, free: 142.1 MB / 494.1 MB Notification: Performance of Templates: time 0.1269/2.112, allocations: 75.11 MB / 0.9732 GB, free: 93.79 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 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1)