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.001067/0.001067, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.44/1.44, allocations: 222.9 MB / 239 MB, free: 4.703 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.001499/0.001499, allocations: 196.4 kB / 289.3 MB, free: 2.441 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03287/0.03286, allocations: 8.794 MB / 348.2 MB, free: 4.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 83.2 kB / 410.6 MB, free: 42.26 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1169, allocations: 51.56 MB / 462.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02582/0.1427, allocations: 24.42 MB / 486.6 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01966/0.1624, allocations: 7.894 MB / 494.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005927/0.1684, allocations: 175.4 kB / 494.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01848/0.1869, allocations: 7.94 MB / 0.4908 GB, free: 6.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01143/0.1984, allocations: 2.701 MB / 0.4934 GB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006653/0.205, allocations: 1.684 MB / 0.4951 GB, free: 1.762 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01921/0.2243, allocations: 11.08 MB / 0.5059 GB, free: 6.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3268/0.5511, allocations: 26.84 MB / 0.5321 GB, free: 15.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01167/0.5629, allocations: 5.94 MB / 0.5379 GB, free: 15.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01314/0.576, allocations: 6.584 MB / 0.5443 GB, free: 14.61 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006763/0.5828, allocations: 1.72 MB / 0.546 GB, free: 14.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009216/0.5921, allocations: 2.129 MB / 0.5481 GB, free: 14.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007563/0.5996, allocations: 3.36 MB / 0.5514 GB, free: 14.24 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01986/0.6195, allocations: 6.367 MB / 0.5576 GB, free: 12.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02921/0.6488, allocations: 22.99 MB / 0.58 GB, free: 1.672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.6488, allocations: 0 / 0.58 GB, free: 1.672 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.6489, allocations: 0 / 0.58 GB, free: 1.672 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000783/0.6496, allocations: 0 / 0.58 GB, free: 1.672 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.0481/0.6977, allocations: 13.46 MB / 0.5932 GB, free: 8.281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.874e-05/0.6978, allocations: 8.031 kB / 0.5932 GB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03631/0.7341, allocations: 6.214 MB / 0.5993 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0186/0.7528, allocations: 7.066 MB / 0.6062 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001057/0.7539, allocations: 0.7276 MB / 0.6069 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005743/0.7596, allocations: 0.9478 MB / 0.6078 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0558/0.8155, allocations: 16.15 MB / 0.6236 GB, free: 9.457 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007918/0.8163, allocations: 12.98 kB / 0.6236 GB, free: 9.445 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005678/0.822, allocations: 405.1 kB / 0.624 GB, free: 9.062 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008398/0.8229, allocations: 0.5631 MB / 0.6245 GB, free: 8.496 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03838/0.8613, allocations: 15.1 MB / 0.6393 GB, free: 9.379 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1107/0.972, allocations: 52.61 MB / 0.6906 GB, free: 4.52 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2865/1.259, allocations: 20.11 MB / 0.7103 GB, free: 154.9 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00781/1.266, allocations: 3.666 MB / 0.7139 GB, free: 154.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000788/1.267, allocations: 186.3 kB / 0.714 GB, free: 154.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001192/1.267, allocations: 78.31 kB / 0.7141 GB, free: 154.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=453): time 1.019e-05/1.267, allocations: 3.781 kB / 0.7141 GB, free: 154.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=458): time 0.05807/1.325, allocations: 20.71 MB / 0.7343 GB, free: 152.7 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.538e-05/1.326, allocations: 98.34 kB / 0.7344 GB, free: 152.7 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006933/1.333, allocations: 4.498 MB / 0.7388 GB, free: 151.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00103/1.334, allocations: 95.73 kB / 0.7389 GB, free: 151 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002311/1.336, allocations: 4.185 MB / 0.743 GB, free: 147.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001963/1.338, allocations: 1.561 MB / 0.7445 GB, free: 146.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002025/1.34, allocations: 1.2 MB / 0.7457 GB, free: 146.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.136e-05/1.34, allocations: 301.1 kB / 0.746 GB, free: 145.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004802/1.345, allocations: 3.094 MB / 0.749 GB, free: 144.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004824/1.35, allocations: 5.248 MB / 0.7541 GB, free: 140.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009306/1.359, allocations: 8.942 MB / 0.7629 GB, free: 134.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.466e-05/1.359, allocations: 27.94 kB / 0.7629 GB, free: 134.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.0166/1.376, allocations: 9.904 MB / 0.7726 GB, free: 129.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.148e-05/1.376, allocations: 36 kB / 0.7726 GB, free: 129.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001555/1.376, allocations: 68 kB / 0.7727 GB, free: 129.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003583/1.38, allocations: 1.384 MB / 0.774 GB, free: 128.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005296/1.385, allocations: 1.384 MB / 0.7754 GB, free: 127 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01455/1.399, allocations: 12.52 MB / 0.7876 GB, free: 114.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005603/1.405, allocations: 351.5 kB / 0.7879 GB, free: 113.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001487/1.407, allocations: 292.6 kB / 0.7882 GB, free: 113.5 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.008389/1.415, allocations: 3.892 MB / 0.792 GB, free: 109.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001321/1.416, allocations: 459 kB / 0.7925 GB, free: 109.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01218/1.429, allocations: 8.583 MB / 0.8008 GB, free: 100.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01017/1.439, allocations: 6.304 MB / 0.807 GB, free: 94.25 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.273e-05/1.439, allocations: 12 kB / 0.807 GB, free: 94.23 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.633e-05/1.439, allocations: 23.91 kB / 0.807 GB, free: 94.21 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03055/1.469, allocations: 17.75 MB / 0.8244 GB, free: 76.35 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.827e-05/1.469, allocations: 8 kB / 0.8244 GB, free: 76.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003237/1.473, allocations: 0.8041 MB / 0.8251 GB, free: 75.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003158/1.476, allocations: 1.294 MB / 0.8264 GB, free: 74.24 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008393/1.477, allocations: 104 kB / 0.8265 GB, free: 74.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01232/1.489, allocations: 11.43 MB / 0.8377 GB, free: 62.46 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/1.489, allocations: 8 kB / 0.8377 GB, free: 62.45 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01661/1.506, allocations: 11.3 MB / 0.8487 GB, free: 51.02 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003248/1.509, allocations: 1.085 MB / 0.8498 GB, free: 49.91 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001211/1.51, allocations: 91.84 kB / 0.8499 GB, free: 49.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003021/1.513, allocations: 235.7 kB / 0.8501 GB, free: 49.59 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007454/1.514, allocations: 335.5 kB / 0.8504 GB, free: 49.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002847/1.514, allocations: 136.6 kB / 0.8505 GB, free: 49.13 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00518/1.52, allocations: 3.107 MB / 0.8536 GB, free: 46.02 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.52, allocations: 1.422 kB / 0.8536 GB, free: 46.02 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008964/1.529, allocations: 1.722 MB / 0.8552 GB, free: 44.3 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.002058/1.531, allocations: 0.5414 MB / 0.8558 GB, free: 43.93 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.03241/1.563, allocations: 15.25 MB / 0.8707 GB, free: 28.72 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.479e-05/1.563, allocations: 4 kB / 0.8707 GB, free: 28.71 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007407/1.571, allocations: 3.989 MB / 0.8746 GB, free: 24.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007442/1.578, allocations: 1.039 MB / 0.8756 GB, free: 23.68 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3032/1.881, allocations: 22.35 MB / 0.8974 GB, free: 140 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01736/1.899, allocations: 6.513 MB / 0.9038 GB, free: 139.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.01047/1.909, allocations: 2.117 MB / 0.9058 GB, free: 139 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002435/1.912, allocations: 374.4 kB / 0.9062 GB, free: 139 MB / 494.1 MB Notification: Performance of SimCode: time 1.402e-06/1.912, allocations: 0 / 0.9062 GB, free: 139 MB / 494.1 MB Notification: Performance of Templates: time 0.1298/2.041, allocations: 75.35 MB / 0.9798 GB, free: 87.52 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)