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.01323/0.01323, allocations: 100.8 kB / 15.87 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.462/2.462, allocations: 222.9 MB / 239.5 MB, free: 4.824 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.002109/0.002109, allocations: 196.5 kB / 289.8 MB, free: 2.551 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03623/0.03623, allocations: 8.781 MB / 348.7 MB, free: 4.957 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002544/0.002545, allocations: 76.3 kB / 411.1 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1886/0.1911, allocations: 51.56 MB / 462.6 MB, free: 15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.0429/0.2341, allocations: 24.43 MB / 487 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02945/0.2637, allocations: 7.937 MB / 495 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01072/0.2745, allocations: 175.4 kB / 495.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03015/0.3047, allocations: 7.934 MB / 0.4913 GB, free: 6.371 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01945/0.3242, allocations: 2.729 MB / 0.494 GB, free: 3.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00935/0.3335, allocations: 1.69 MB / 0.4956 GB, free: 1.949 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02613/0.3597, allocations: 10.96 MB / 0.5063 GB, free: 6.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05925/0.419, allocations: 19.57 MB / 0.5254 GB, free: 3.227 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4319/0.851, allocations: 5.081 MB / 0.5304 GB, free: 20.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01938/0.8705, allocations: 6.192 MB / 0.5364 GB, free: 19.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01255/0.8831, allocations: 1.108 MB / 0.5375 GB, free: 19.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01461/0.8978, allocations: 1.516 MB / 0.539 GB, free: 19.76 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01142/0.9093, allocations: 2.729 MB / 0.5417 GB, free: 19.4 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02705/0.9364, allocations: 5.725 MB / 0.5473 GB, free: 17.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03882/0.9754, allocations: 20.18 MB / 0.567 GB, free: 10.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.457e-05/0.9755, allocations: 0 / 0.567 GB, free: 10.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.595e-06/0.9755, allocations: 0.75 kB / 0.567 GB, free: 10.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0008834/0.9764, allocations: 3.469 kB / 0.567 GB, free: 10.98 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.08956/1.066, allocations: 13.46 MB / 0.5801 GB, free: 3.004 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001042/1.066, allocations: 11.62 kB / 0.5801 GB, free: 3.004 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06995/1.136, allocations: 6.216 MB / 0.5862 GB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02865/1.165, allocations: 7.064 MB / 0.5931 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001355/1.166, allocations: 0.7246 MB / 0.5938 GB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007485/1.174, allocations: 0.9463 MB / 0.5947 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07803/1.252, allocations: 16.15 MB / 0.6105 GB, free: 7.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007623/1.253, allocations: 15.84 kB / 0.6105 GB, free: 7.254 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007022/1.26, allocations: 404.8 kB / 0.6109 GB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001075/1.261, allocations: 0.5553 MB / 0.6114 GB, free: 6.312 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06657/1.327, allocations: 15.12 MB / 0.6262 GB, free: 7.188 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1828/1.51, allocations: 52.6 MB / 0.6776 GB, free: 2.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0385/1.549, allocations: 20.13 MB / 0.6972 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01245/1.561, allocations: 3.668 MB / 0.7008 GB, free: 8.688 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001105/1.563, allocations: 184 kB / 0.701 GB, free: 8.504 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001766/1.563, allocations: 82.09 kB / 0.7011 GB, free: 8.414 MB / 494.1 MB Notification: Performance of pre-optimization done (n=453): time 2.747e-05/1.563, allocations: 0 / 0.7011 GB, free: 8.414 MB / 494.1 MB Notification: Performance of matching and sorting (n=458): time 0.5243/2.087, allocations: 20.71 MB / 0.7213 GB, free: 157 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001902/2.087, allocations: 97.75 kB / 0.7214 GB, free: 156.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01707/2.105, allocations: 4.499 MB / 0.7258 GB, free: 156.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00157/2.106, allocations: 99.48 kB / 0.7259 GB, free: 156.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00573/2.112, allocations: 4.187 MB / 0.73 GB, free: 154.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003756/2.116, allocations: 1.556 MB / 0.7315 GB, free: 153.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004042/2.12, allocations: 1.196 MB / 0.7326 GB, free: 153.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.752e-05/2.12, allocations: 305.2 kB / 0.7329 GB, free: 152.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009086/2.129, allocations: 3.097 MB / 0.736 GB, free: 152.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01117/2.14, allocations: 5.25 MB / 0.7411 GB, free: 148.9 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01868/2.159, allocations: 8.932 MB / 0.7498 GB, free: 143.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001697/2.159, allocations: 18.69 kB / 0.7498 GB, free: 143.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.03319/2.192, allocations: 9.916 MB / 0.7595 GB, free: 139.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002582/2.193, allocations: 34.56 kB / 0.7595 GB, free: 139.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000268/2.193, allocations: 68 kB / 0.7596 GB, free: 139.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006863/2.2, allocations: 1.38 MB / 0.761 GB, free: 138.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009561/2.21, allocations: 1.385 MB / 0.7623 GB, free: 138 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02472/2.234, allocations: 11.66 MB / 0.7737 GB, free: 127.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00974/2.244, allocations: 352.8 kB / 0.774 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002419/2.247, allocations: 292.2 kB / 0.7743 GB, free: 127 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 (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01595/2.263, allocations: 3.895 MB / 0.7781 GB, free: 123.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003432/2.266, allocations: 462.9 kB / 0.7786 GB, free: 123.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02784/2.294, allocations: 8.579 MB / 0.7869 GB, free: 115.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01871/2.313, allocations: 6.3 MB / 0.7931 GB, free: 108.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.568e-05/2.313, allocations: 12 kB / 0.7931 GB, free: 108.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001357/2.313, allocations: 23.92 kB / 0.7931 GB, free: 108.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06366/2.377, allocations: 17.74 MB / 0.8104 GB, free: 90.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-05/2.377, allocations: 8 kB / 0.8105 GB, free: 90.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00548/2.382, allocations: 0.8093 MB / 0.8112 GB, free: 90.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005359/2.388, allocations: 1.282 MB / 0.8125 GB, free: 88.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001595/2.389, allocations: 104 kB / 0.8126 GB, free: 88.67 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02179/2.411, allocations: 10.58 MB / 0.8229 GB, free: 77.84 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.155e-05/2.411, allocations: 8 kB / 0.8229 GB, free: 77.83 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02865/2.44, allocations: 11.29 MB / 0.834 GB, free: 66.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005516/2.446, allocations: 1.093 MB / 0.835 GB, free: 65.29 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002416/2.448, allocations: 92 kB / 0.8351 GB, free: 65.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005454/2.453, allocations: 231.7 kB / 0.8353 GB, free: 64.97 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001468/2.455, allocations: 331.5 kB / 0.8356 GB, free: 64.64 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004739/2.455, allocations: 138 kB / 0.8358 GB, free: 64.51 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.008889/2.464, allocations: 3.107 MB / 0.8388 GB, free: 61.39 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.82e-07/2.464, allocations: 0 / 0.8388 GB, free: 61.39 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01469/2.479, allocations: 1.728 MB / 0.8405 GB, free: 59.67 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 (420): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,44.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003494/2.483, allocations: 0.5316 MB / 0.841 GB, free: 59.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02259/2.505, allocations: 8.033 MB / 0.8489 GB, free: 51.27 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.283e-05/2.505, allocations: 4 kB / 0.8489 GB, free: 51.26 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01156/2.517, allocations: 3.98 MB / 0.8528 GB, free: 47.25 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01124/2.528, allocations: 0.9987 MB / 0.8537 GB, free: 46.27 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06156/2.59, allocations: 22.11 MB / 0.8753 GB, free: 24.04 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01582/2.606, allocations: 6.322 MB / 0.8815 GB, free: 17.68 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004284/2.61, allocations: 423.3 kB / 0.8819 GB, free: 17.27 MB / 494.1 MB Notification: Performance of SimCode: time 2.063e-06/2.61, allocations: 0 / 0.8819 GB, free: 17.27 MB / 494.1 MB Notification: Performance of Templates: time 1.043/3.653, allocations: 227.2 MB / 1.104 GB, free: 150.5 MB / 0.4981 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)