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.008051/0.008051, allocations: 104.3 kB / 15.74 MB, free: 6.441 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.381/1.381, allocations: 222.9 MB / 239.4 MB, free: 4.496 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.001358/0.001358, allocations: 184.5 kB / 289.7 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0338/0.0338, allocations: 8.795 MB / 348.6 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002244/0.002244, allocations: 80.19 kB / 463.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1505, allocations: 51.56 MB / 0.5034 GB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02648/0.177, allocations: 24.86 MB / 0.5277 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3373/0.5143, allocations: 7.977 MB / 0.5355 GB, free: 4.879 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006192/0.5206, allocations: 181.5 kB / 0.5356 GB, free: 4.879 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02432/0.5449, allocations: 8.386 MB / 0.5438 GB, free: 3.965 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01816/0.5631, allocations: 2.975 MB / 0.5467 GB, free: 3.133 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01006/0.5732, allocations: 1.812 MB / 0.5485 GB, free: 2.973 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02795/0.6012, allocations: 11.11 MB / 0.5594 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07678/0.678, allocations: 23.27 MB / 0.5821 GB, free: 14.2 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02048/0.6986, allocations: 5.923 MB / 0.5879 GB, free: 8.406 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02179/0.7204, allocations: 6.437 MB / 0.5941 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009321/0.7298, allocations: 1.715 MB / 0.5958 GB, free: 432 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01524/0.7451, allocations: 2.131 MB / 0.5979 GB, free: 14.3 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01158/0.7568, allocations: 3.4 MB / 0.6012 GB, free: 10.94 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0208/0.7776, allocations: 6.355 MB / 0.6074 GB, free: 4.605 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04781/0.8255, allocations: 23.11 MB / 0.63 GB, free: 13.87 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.354e-05/0.8256, allocations: 4 kB / 0.63 GB, free: 13.86 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.8256, allocations: 4 kB / 0.63 GB, free: 13.86 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007551/0.8264, allocations: 0 / 0.63 GB, free: 13.86 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.06961/0.896, allocations: 13.37 MB / 0.6431 GB, free: 492 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.605e-05/0.8961, allocations: 8.031 kB / 0.6431 GB, free: 484 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04295/0.9391, allocations: 6.269 MB / 0.6492 GB, free: 10.26 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01624/0.9554, allocations: 7.25 MB / 0.6563 GB, free: 2.984 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007357/0.9562, allocations: 0.7214 MB / 0.657 GB, free: 2.273 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004626/0.9608, allocations: 0.9405 MB / 0.6579 GB, free: 1.344 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0498/1.011, allocations: 16.13 MB / 0.6736 GB, free: 1.184 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006629/1.011, allocations: 15.84 kB / 0.6737 GB, free: 1.168 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005627/1.017, allocations: 402.5 kB / 0.674 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008721/1.018, allocations: 0.5552 MB / 0.6746 GB, free: 232 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04653/1.064, allocations: 15.11 MB / 0.6893 GB, free: 1.098 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6742/1.739, allocations: 52 MB / 0.7401 GB, free: 120.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0188/1.757, allocations: 20.1 MB / 0.7598 GB, free: 106.8 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005733/1.763, allocations: 3.632 MB / 0.7633 GB, free: 106.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004212/1.764, allocations: 186.6 kB / 0.7635 GB, free: 106.6 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.613e-05/1.764, allocations: 80.72 kB / 0.7636 GB, free: 106.6 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=447): time 6.352e-06/1.764, allocations: 0 / 0.7636 GB, free: 106.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=452): time 0.04588/1.81, allocations: 20.63 MB / 0.7837 GB, free: 101.4 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/1.81, allocations: 105.5 kB / 0.7838 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005565/1.815, allocations: 4.495 MB / 0.7882 GB, free: 98.98 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007066/1.816, allocations: 99.58 kB / 0.7883 GB, free: 98.9 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002042/1.818, allocations: 4.201 MB / 0.7924 GB, free: 95.24 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001396/1.819, allocations: 1.532 MB / 0.7939 GB, free: 93.92 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001588/1.821, allocations: 1.19 MB / 0.795 GB, free: 93.24 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.358e-05/1.821, allocations: 301.1 kB / 0.7953 GB, free: 92.94 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003911/1.825, allocations: 3.067 MB / 0.7983 GB, free: 91.28 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006165/1.831, allocations: 5.209 MB / 0.8034 GB, free: 86.78 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01012/1.841, allocations: 8.872 MB / 0.8121 GB, free: 80.15 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.623e-05/1.841, allocations: 18.66 kB / 0.8121 GB, free: 80.15 MB / 0.5138 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01522/1.857, allocations: 9.865 MB / 0.8217 GB, free: 72.01 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.86e-05/1.857, allocations: 32 kB / 0.8218 GB, free: 71.98 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001155/1.857, allocations: 68 kB / 0.8218 GB, free: 71.91 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003399/1.86, allocations: 1.406 MB / 0.8232 GB, free: 70.5 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004976/1.865, allocations: 1.388 MB / 0.8246 GB, free: 69.11 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0143/1.88, allocations: 12.65 MB / 0.8369 GB, free: 56.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005064/1.885, allocations: 355.5 kB / 0.8372 GB, free: 55.85 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001242/1.886, allocations: 300 kB / 0.8375 GB, free: 55.55 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.006425/1.892, allocations: 3.888 MB / 0.8413 GB, free: 51.65 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001196/1.894, allocations: 458.3 kB / 0.8418 GB, free: 51.2 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01171/1.905, allocations: 8.514 MB / 0.8501 GB, free: 42.63 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008279/1.914, allocations: 6.248 MB / 0.8562 GB, free: 36.36 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.832e-05/1.914, allocations: 14.73 kB / 0.8562 GB, free: 36.35 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.549e-05/1.914, allocations: 23.92 kB / 0.8562 GB, free: 36.33 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02712/1.941, allocations: 17.4 MB / 0.8732 GB, free: 18.84 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.888e-05/1.941, allocations: 8 kB / 0.8732 GB, free: 18.83 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002977/1.944, allocations: 0.8079 MB / 0.874 GB, free: 18.02 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003184/1.947, allocations: 1.297 MB / 0.8753 GB, free: 16.72 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00048/1.948, allocations: 99.92 kB / 0.8754 GB, free: 16.62 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01254/1.96, allocations: 11.55 MB / 0.8866 GB, free: 4.812 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/1.96, allocations: 15.94 kB / 0.8867 GB, free: 4.797 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01859/1.979, allocations: 11.19 MB / 0.8976 GB, free: 9.465 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003518/1.982, allocations: 1.089 MB / 0.8986 GB, free: 8.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001039/1.983, allocations: 92 kB / 0.8987 GB, free: 8.262 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002541/1.986, allocations: 231.8 kB / 0.899 GB, free: 8.035 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007652/1.987, allocations: 335.5 kB / 0.8993 GB, free: 7.707 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002943/1.987, allocations: 136 kB / 0.8994 GB, free: 7.574 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005063/1.992, allocations: 3.107 MB / 0.9024 GB, free: 4.457 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.51e-07/1.992, allocations: 0 / 0.9024 GB, free: 4.457 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007395/2, allocations: 1.725 MB / 0.9041 GB, free: 2.738 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.001597/2.001, allocations: 0.5406 MB / 0.9047 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01471/2.016, allocations: 7.98 MB / 0.9124 GB, free: 10.35 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.532e-05/2.016, allocations: 4 kB / 0.9124 GB, free: 10.34 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007234/2.023, allocations: 3.939 MB / 0.9163 GB, free: 6.383 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00549/2.029, allocations: 1.059 MB / 0.9173 GB, free: 5.352 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03804/2.067, allocations: 18.01 MB / 0.9349 GB, free: 3.23 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2988/2.366, allocations: 6.502 MB / 0.9413 GB, free: 174.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006871/2.373, allocations: 2.116 MB / 0.9433 GB, free: 174.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001342/2.374, allocations: 375.3 kB / 0.9437 GB, free: 174.8 MB / 0.5607 GB Notification: Performance of SimCode: time 9.72e-07/2.374, allocations: 0 / 0.9437 GB, free: 174.8 MB / 0.5607 GB Notification: Performance of Templates: time 0.1232/2.497, allocations: 71.97 MB / 1.014 GB, free: 135.6 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)