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.001587/0.001594, allocations: 102 kB / 16.41 MB, free: 6.488 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.465/1.465, allocations: 222.9 MB / 240.1 MB, free: 4.375 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.001604/0.001604, allocations: 184.5 kB / 290.4 MB, free: 2.109 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03378/0.03378, allocations: 8.799 MB / 349.3 MB, free: 4.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 80.16 kB / 464.6 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1243, allocations: 51.56 MB / 0.5041 GB, free: 9.402 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02673/0.1511, allocations: 24.87 MB / 0.5283 GB, free: 432 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3038/0.455, allocations: 7.979 MB / 0.5361 GB, free: 4.781 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00706/0.4621, allocations: 180.5 kB / 0.5363 GB, free: 4.781 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02146/0.4836, allocations: 8.372 MB / 0.5445 GB, free: 3.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01254/0.4962, allocations: 2.986 MB / 0.5474 GB, free: 3.004 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006519/0.5027, allocations: 1.82 MB / 0.5492 GB, free: 2.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01928/0.522, allocations: 11.11 MB / 0.56 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04372/0.5658, allocations: 23.26 MB / 0.5827 GB, free: 14.19 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01351/0.5794, allocations: 5.92 MB / 0.5885 GB, free: 8.395 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01389/0.5933, allocations: 6.445 MB / 0.5948 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006275/0.5997, allocations: 1.719 MB / 0.5965 GB, free: 408 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009913/0.6096, allocations: 2.132 MB / 0.5986 GB, free: 14.28 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007216/0.6169, allocations: 3.392 MB / 0.6019 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01669/0.6336, allocations: 6.356 MB / 0.6081 GB, free: 4.586 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0391/0.6727, allocations: 23.11 MB / 0.6307 GB, free: 13.85 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.388e-06/0.6728, allocations: 0 / 0.6307 GB, free: 13.85 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.6728, allocations: 0 / 0.6307 GB, free: 13.85 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008105/0.6736, allocations: 0 / 0.6307 GB, free: 13.85 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.05882/0.7325, allocations: 13.38 MB / 0.6437 GB, free: 472 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/0.7326, allocations: 16.03 kB / 0.6438 GB, free: 456 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04538/0.778, allocations: 6.259 MB / 0.6499 GB, free: 10.24 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01836/0.7964, allocations: 7.251 MB / 0.6569 GB, free: 2.965 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009531/0.7974, allocations: 0.7213 MB / 0.6576 GB, free: 2.254 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004816/0.8022, allocations: 0.9498 MB / 0.6586 GB, free: 1.316 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04806/0.8503, allocations: 16.14 MB / 0.6743 GB, free: 1.152 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005332/0.8509, allocations: 7.906 kB / 0.6743 GB, free: 1.145 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004181/0.8551, allocations: 403.5 kB / 0.6747 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000769/0.8559, allocations: 0.5669 MB / 0.6753 GB, free: 196 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0409/0.8968, allocations: 15.1 MB / 0.69 GB, free: 1.07 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5977/1.495, allocations: 52 MB / 0.7408 GB, free: 120.6 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01951/1.514, allocations: 20.09 MB / 0.7604 GB, free: 106.6 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006532/1.521, allocations: 3.633 MB / 0.764 GB, free: 106.5 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004554/1.521, allocations: 192.4 kB / 0.7642 GB, free: 106.4 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.95e-05/1.521, allocations: 80.22 kB / 0.7642 GB, free: 106.4 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=447): time 7.694e-06/1.521, allocations: 0 / 0.7642 GB, free: 106.4 MB / 0.5138 GB Notification: Performance of matching and sorting (n=452): time 0.04702/1.568, allocations: 20.63 MB / 0.7844 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.502e-05/1.568, allocations: 101.2 kB / 0.7845 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00598/1.574, allocations: 4.503 MB / 0.7889 GB, free: 98.91 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008281/1.575, allocations: 96.7 kB / 0.789 GB, free: 98.83 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002043/1.577, allocations: 4.195 MB / 0.7931 GB, free: 95.18 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001576/1.579, allocations: 1.535 MB / 0.7946 GB, free: 93.85 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001658/1.581, allocations: 1.188 MB / 0.7957 GB, free: 93.17 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 6.175e-05/1.581, allocations: 301.1 kB / 0.796 GB, free: 92.88 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003901/1.585, allocations: 3.069 MB / 0.799 GB, free: 91.21 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004871/1.589, allocations: 5.21 MB / 0.8041 GB, free: 86.71 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009801/1.599, allocations: 8.867 MB / 0.8128 GB, free: 80.09 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.526e-05/1.599, allocations: 19.66 kB / 0.8128 GB, free: 80.09 MB / 0.5138 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01749/1.617, allocations: 9.859 MB / 0.8224 GB, free: 71.93 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.231e-05/1.617, allocations: 39.98 kB / 0.8224 GB, free: 71.89 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001183/1.617, allocations: 68 kB / 0.8225 GB, free: 71.82 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003648/1.621, allocations: 1.413 MB / 0.8239 GB, free: 70.41 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005062/1.626, allocations: 1.384 MB / 0.8252 GB, free: 69.02 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01662/1.642, allocations: 12.65 MB / 0.8376 GB, free: 56.11 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005524/1.648, allocations: 359.5 kB / 0.8379 GB, free: 55.75 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001838/1.65, allocations: 292 kB / 0.8382 GB, free: 55.47 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.008886/1.659, allocations: 3.892 MB / 0.842 GB, free: 51.56 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00174/1.661, allocations: 462.3 kB / 0.8425 GB, free: 51.11 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01485/1.675, allocations: 8.51 MB / 0.8508 GB, free: 42.54 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009815/1.685, allocations: 6.248 MB / 0.8569 GB, free: 36.27 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.403e-05/1.685, allocations: 14.73 kB / 0.8569 GB, free: 36.26 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.973e-05/1.685, allocations: 19.92 kB / 0.8569 GB, free: 36.24 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03224/1.718, allocations: 17.4 MB / 0.8739 GB, free: 18.75 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.6e-05/1.718, allocations: 9 kB / 0.8739 GB, free: 18.74 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003091/1.721, allocations: 0.8074 MB / 0.8747 GB, free: 17.93 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003334/1.724, allocations: 1.286 MB / 0.8759 GB, free: 16.64 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004513/1.725, allocations: 108 kB / 0.876 GB, free: 16.54 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01373/1.738, allocations: 11.55 MB / 0.8873 GB, free: 4.727 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.697e-06/1.738, allocations: 16 kB / 0.8873 GB, free: 4.711 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02007/1.759, allocations: 11.18 MB / 0.8983 GB, free: 9.383 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003216/1.762, allocations: 1.093 MB / 0.8993 GB, free: 8.266 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001582/1.763, allocations: 92 kB / 0.8994 GB, free: 8.176 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003338/1.767, allocations: 231.8 kB / 0.8996 GB, free: 7.949 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001064/1.768, allocations: 331.5 kB / 0.9 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005251/1.768, allocations: 136 kB / 0.9001 GB, free: 7.492 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007696/1.776, allocations: 3.107 MB / 0.9031 GB, free: 4.375 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.6e-07/1.776, allocations: 0 / 0.9031 GB, free: 4.375 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009283/1.785, allocations: 1.727 MB / 0.9048 GB, free: 2.656 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.002118/1.788, allocations: 0.5475 MB / 0.9053 GB, free: 2.262 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01683/1.804, allocations: 7.98 MB / 0.9131 GB, free: 10.26 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-05/1.805, allocations: 4.125 kB / 0.9131 GB, free: 10.25 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.009067/1.814, allocations: 3.938 MB / 0.917 GB, free: 6.293 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008491/1.822, allocations: 1.044 MB / 0.918 GB, free: 5.273 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0433/1.865, allocations: 17.75 MB / 0.9353 GB, free: 3.402 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2695/2.135, allocations: 6.318 MB / 0.9415 GB, free: 175.7 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002104/2.137, allocations: 428.1 kB / 0.9419 GB, free: 175.7 MB / 0.5607 GB Notification: Performance of SimCode: time 1.233e-06/2.137, allocations: 0 / 0.9419 GB, free: 175.7 MB / 0.5607 GB Notification: Performance of Templates: time 0.5205/2.658, allocations: 227.8 MB / 1.164 GB, free: 162.8 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)