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.001009/0.001009, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.255/1.255, allocations: 222.9 MB / 238.9 MB, free: 4.742 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.001095/0.001095, allocations: 180.5 kB / 289.1 MB, free: 2.488 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03178/0.03178, allocations: 8.801 MB / 348.1 MB, free: 4.902 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 76.62 kB / 410.4 MB, free: 42.42 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09974/0.101, allocations: 51.56 MB / 462 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02224/0.1233, allocations: 24.42 MB / 486.4 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01571/0.1391, allocations: 7.933 MB / 494.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006167/0.1453, allocations: 175.5 kB / 494.5 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01792/0.1632, allocations: 7.936 MB / 0.4906 GB, free: 6.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009252/0.1725, allocations: 2.727 MB / 0.4933 GB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005108/0.1776, allocations: 1.693 MB / 0.495 GB, free: 1.891 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0137/0.1914, allocations: 10.96 MB / 0.5057 GB, free: 6.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02845/0.2199, allocations: 19.57 MB / 0.5248 GB, free: 3.168 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2012/0.4211, allocations: 5.079 MB / 0.5297 GB, free: 20.1 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009849/0.431, allocations: 6.192 MB / 0.5358 GB, free: 19.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00536/0.4364, allocations: 1.109 MB / 0.5369 GB, free: 19.81 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006963/0.4434, allocations: 1.515 MB / 0.5383 GB, free: 19.81 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004579/0.448, allocations: 2.726 MB / 0.541 GB, free: 19.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01185/0.4598, allocations: 5.727 MB / 0.5466 GB, free: 17.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02044/0.4803, allocations: 22.6 MB / 0.5687 GB, free: 9.703 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.4803, allocations: 3.281 kB / 0.5687 GB, free: 9.703 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4803, allocations: 0 / 0.5687 GB, free: 9.703 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006366/0.481, allocations: 0 / 0.5687 GB, free: 9.703 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.0455/0.5265, allocations: 13.46 MB / 0.5818 GB, free: 1.305 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.5266, allocations: 14 kB / 0.5818 GB, free: 1.301 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03351/0.5601, allocations: 6.211 MB / 0.5879 GB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0164/0.5765, allocations: 7.072 MB / 0.5948 GB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006471/0.5772, allocations: 0.7196 MB / 0.5955 GB, free: 5.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005009/0.5822, allocations: 0.948 MB / 0.5964 GB, free: 5.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04648/0.6287, allocations: 16.15 MB / 0.6122 GB, free: 4.848 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003563/0.6291, allocations: 15.89 kB / 0.6122 GB, free: 4.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004099/0.6332, allocations: 401.9 kB / 0.6126 GB, free: 4.449 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005166/0.6338, allocations: 0.5553 MB / 0.6131 GB, free: 3.891 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03176/0.6655, allocations: 15.11 MB / 0.6279 GB, free: 4.762 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09452/0.7601, allocations: 52.61 MB / 0.6793 GB, free: 15.97 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02012/0.7802, allocations: 20.12 MB / 0.6989 GB, free: 9.914 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005714/0.786, allocations: 3.672 MB / 0.7025 GB, free: 6.238 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004327/0.7865, allocations: 193.7 kB / 0.7027 GB, free: 6.047 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.913e-05/0.7865, allocations: 82.09 kB / 0.7028 GB, free: 5.957 MB / 494.1 MB Notification: Performance of pre-optimization done (n=453): time 6.392e-06/0.7865, allocations: 0 / 0.7028 GB, free: 5.957 MB / 494.1 MB Notification: Performance of matching and sorting (n=458): time 0.2231/1.01, allocations: 20.7 MB / 0.723 GB, free: 156.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.759e-05/1.01, allocations: 100.2 kB / 0.7231 GB, free: 156.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00655/1.016, allocations: 4.493 MB / 0.7275 GB, free: 155.8 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005734/1.017, allocations: 98.55 kB / 0.7276 GB, free: 155.7 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001899/1.019, allocations: 4.19 MB / 0.7316 GB, free: 153.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0012/1.02, allocations: 1.558 MB / 0.7332 GB, free: 152.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001615/1.022, allocations: 1.193 MB / 0.7343 GB, free: 152.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.285e-05/1.022, allocations: 308.2 kB / 0.7346 GB, free: 152.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004345/1.026, allocations: 3.094 MB / 0.7377 GB, free: 151.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004217/1.03, allocations: 5.257 MB / 0.7428 GB, free: 148 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008484/1.039, allocations: 8.927 MB / 0.7515 GB, free: 142.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.286e-05/1.039, allocations: 18.75 kB / 0.7515 GB, free: 142.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01501/1.054, allocations: 9.915 MB / 0.7612 GB, free: 138.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.146e-05/1.054, allocations: 34.81 kB / 0.7612 GB, free: 138.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001051/1.054, allocations: 73.44 kB / 0.7613 GB, free: 138.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003255/1.057, allocations: 1.381 MB / 0.7627 GB, free: 137.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004849/1.062, allocations: 1.384 MB / 0.764 GB, free: 136.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01387/1.076, allocations: 11.64 MB / 0.7754 GB, free: 126.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004434/1.081, allocations: 355.5 kB / 0.7757 GB, free: 125.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008272/1.081, allocations: 296.7 kB / 0.776 GB, free: 125.6 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.005899/1.087, allocations: 3.896 MB / 0.7798 GB, free: 121.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001092/1.088, allocations: 462.2 kB / 0.7802 GB, free: 121.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01146/1.1, allocations: 8.57 MB / 0.7886 GB, free: 112.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008811/1.109, allocations: 6.303 MB / 0.7948 GB, free: 106.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.875e-05/1.109, allocations: 12 kB / 0.7948 GB, free: 106.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.833e-05/1.109, allocations: 23.91 kB / 0.7948 GB, free: 106.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03029/1.139, allocations: 17.74 MB / 0.8121 GB, free: 88.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.188e-05/1.139, allocations: 8 kB / 0.8121 GB, free: 88.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003097/1.142, allocations: 0.8136 MB / 0.8129 GB, free: 87.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003031/1.145, allocations: 1.286 MB / 0.8142 GB, free: 86.35 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006306/1.146, allocations: 108 kB / 0.8143 GB, free: 86.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01147/1.157, allocations: 10.57 MB / 0.8246 GB, free: 75.43 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.676e-06/1.158, allocations: 11.94 kB / 0.8246 GB, free: 75.41 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01571/1.173, allocations: 11.3 MB / 0.8356 GB, free: 63.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002566/1.176, allocations: 1.085 MB / 0.8367 GB, free: 62.87 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008943/1.177, allocations: 95.98 kB / 0.8368 GB, free: 62.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002402/1.179, allocations: 231.8 kB / 0.837 GB, free: 62.55 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006789/1.18, allocations: 331.5 kB / 0.8373 GB, free: 62.22 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002546/1.18, allocations: 132 kB / 0.8375 GB, free: 62.09 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004334/1.184, allocations: 3.115 MB / 0.8405 GB, free: 58.97 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.51e-07/1.184, allocations: 0 / 0.8405 GB, free: 58.97 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008441/1.193, allocations: 1.724 MB / 0.8422 GB, free: 57.25 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.002372/1.195, allocations: 0.5421 MB / 0.8427 GB, free: 56.88 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01271/1.208, allocations: 8.021 MB / 0.8506 GB, free: 48.84 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/1.208, allocations: 4 kB / 0.8506 GB, free: 48.84 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006318/1.214, allocations: 3.976 MB / 0.8544 GB, free: 44.84 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00679/1.221, allocations: 0.9992 MB / 0.8554 GB, free: 43.85 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03526/1.257, allocations: 22.37 MB / 0.8773 GB, free: 21.37 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006986/1.264, allocations: 6.505 MB / 0.8836 GB, free: 14.83 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006178/1.27, allocations: 2.119 MB / 0.8857 GB, free: 12.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001291/1.271, allocations: 375.4 kB / 0.886 GB, free: 12.34 MB / 494.1 MB Notification: Performance of SimCode: time 1.313e-06/1.271, allocations: 0 / 0.886 GB, free: 12.34 MB / 494.1 MB Notification: Performance of Templates: time 0.3015/1.573, allocations: 72.76 MB / 0.9571 GB, free: 103 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)