Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.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_Inverter1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1") translateModel(HanserModelica.InductionMachines.IMC_Inverter1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001435/0.001436, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.409/1.409, allocations: 223.3 MB / 239.4 MB, free: 5.504 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.00121/0.00121, allocations: 184.4 kB / 290.6 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03528/0.03528, allocations: 8.797 MB / 350.5 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003879/0.0003879, allocations: 16.41 kB / 413.8 MB, free: 42.78 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1229, allocations: 52.55 MB / 466.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01329/0.1363, allocations: 12.34 MB / 478.7 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01096/0.1473, allocations: 4.232 MB / 482.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003087/0.1504, allocations: 79.69 kB / 483 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003741/0.1542, allocations: 0.8941 MB / 483.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007648/0.1619, allocations: 1.162 MB / 485.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003217/0.1651, allocations: 0.7868 MB / 485.9 MB, free: 9.566 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007293/0.1724, allocations: 4.307 MB / 490.2 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005538/0.178, allocations: 2.892 MB / 493.1 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002752/0.1807, allocations: 1.322 MB / 494.4 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003453/0.1842, allocations: 1.699 MB / 496.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001103/0.1853, allocations: 212 kB / 496.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002219/0.1876, allocations: 423.7 kB / 496.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001405/0.189, allocations: 0.7743 MB / 497.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003851/0.1929, allocations: 1.786 MB / 499.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008183/0.2011, allocations: 6.447 MB / 0.4939 GB, free: 5.578 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2011, allocations: 0 / 0.4939 GB, free: 5.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.065e-06/0.2011, allocations: 0 / 0.4939 GB, free: 5.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002419/0.2013, allocations: 0 / 0.4939 GB, free: 5.578 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 880 * Number of variables: 880 Notification: Performance of Generate backend data structure: time 0.01198/0.2133, allocations: 3.756 MB / 0.4975 GB, free: 1.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.2134, allocations: 11.97 kB / 0.4975 GB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005853/0.2193, allocations: 0.8395 MB / 0.4984 GB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007669/0.227, allocations: 2.36 MB / 0.5007 GB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004725/0.2275, allocations: 255.1 kB / 0.5009 GB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002236/0.2298, allocations: 340 kB / 0.5012 GB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01351/0.2433, allocations: 4.511 MB / 0.5056 GB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000147/0.2435, allocations: 8 kB / 0.5056 GB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008158/0.2443, allocations: 132 kB / 0.5058 GB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001959/0.2445, allocations: 162.7 kB / 0.5059 GB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008949/0.2535, allocations: 3.825 MB / 0.5097 GB, free: 5.215 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02789/0.2814, allocations: 14.25 MB / 0.5236 GB, free: 6.547 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2735/0.555, allocations: 6.144 MB / 0.5296 GB, free: 63.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002411/0.5575, allocations: 1.219 MB / 0.5308 GB, free: 63.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005458/0.5629, allocations: 3.325 MB / 0.534 GB, free: 62.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.563, allocations: 44.31 kB / 0.5341 GB, free: 62.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 2.886e-06/0.563, allocations: 3.375 kB / 0.5341 GB, free: 62.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01117/0.5742, allocations: 5.298 MB / 0.5392 GB, free: 61.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.5743, allocations: 62.66 kB / 0.5393 GB, free: 61.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003007/0.5773, allocations: 1.688 MB / 0.5409 GB, free: 61.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001258/0.5774, allocations: 51.08 kB / 0.541 GB, free: 61.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001216/0.5786, allocations: 1.493 MB / 0.5424 GB, free: 60.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003566/0.579, allocations: 415.4 kB / 0.5428 GB, free: 60.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001926/0.5792, allocations: 133 kB / 0.543 GB, free: 60.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.332e-05/0.5793, allocations: 301.1 kB / 0.5433 GB, free: 59.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.5804, allocations: 0.6329 MB / 0.5439 GB, free: 59.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001412/0.5819, allocations: 1.146 MB / 0.545 GB, free: 58.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002679/0.5846, allocations: 1.885 MB / 0.5468 GB, free: 57.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.409e-05/0.5846, allocations: 4.719 kB / 0.5468 GB, free: 57.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004076/0.5887, allocations: 2.208 MB / 0.549 GB, free: 56.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.357e-05/0.5887, allocations: 12 kB / 0.549 GB, free: 56.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.232e-05/0.5888, allocations: 15.84 kB / 0.549 GB, free: 56.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004298/0.5892, allocations: 141.4 kB / 0.5492 GB, free: 56.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/0.5907, allocations: 400.4 kB / 0.5495 GB, free: 56.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002154/0.5929, allocations: 3.088 MB / 0.5526 GB, free: 53.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001524/0.5944, allocations: 78.03 kB / 0.5526 GB, free: 53.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.5946, allocations: 72.55 kB / 0.5527 GB, free: 53.39 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * 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 (196): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002188/0.5968, allocations: 1.039 MB / 0.5537 GB, free: 52.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003306/0.5971, allocations: 176.5 kB / 0.5539 GB, free: 52.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003128/0.6002, allocations: 2.071 MB / 0.5559 GB, free: 51.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-06/0.6003, allocations: 14.83 kB / 0.5559 GB, free: 51.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.6003, allocations: 8.562 kB / 0.5559 GB, free: 51.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.6003, allocations: 11.39 kB / 0.5559 GB, free: 51.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00677/0.6071, allocations: 4.797 MB / 0.5606 GB, free: 49.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.6071, allocations: 3.984 kB / 0.5606 GB, free: 49.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006559/0.6078, allocations: 165.6 kB / 0.5608 GB, free: 49.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00104/0.6088, allocations: 448.6 kB / 0.5612 GB, free: 48.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.345e-05/0.6089, allocations: 32.47 kB / 0.5612 GB, free: 48.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007415/0.6163, allocations: 10.11 MB / 0.5711 GB, free: 39.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.6163, allocations: 3.812 kB / 0.5711 GB, free: 39.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003916/0.6203, allocations: 2.885 MB / 0.5739 GB, free: 37.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007378/0.621, allocations: 394.8 kB / 0.5743 GB, free: 36.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.6212, allocations: 31.94 kB / 0.5743 GB, free: 36.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000768/0.622, allocations: 67.95 kB / 0.5744 GB, free: 36.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002275/0.6222, allocations: 96.8 kB / 0.5745 GB, free: 36.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.195e-05/0.6223, allocations: 35.98 kB / 0.5745 GB, free: 36.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001417/0.6237, allocations: 1.152 MB / 0.5757 GB, free: 35.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6237, allocations: 0 / 0.5757 GB, free: 35.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001935/0.6257, allocations: 0.5457 MB / 0.5762 GB, free: 34.96 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.phi) * 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 (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00028/0.626, allocations: 158.2 kB / 0.5763 GB, free: 34.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002874/0.6289, allocations: 1.851 MB / 0.5781 GB, free: 32.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.451e-06/0.6289, allocations: 4 kB / 0.5782 GB, free: 32.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.6307, allocations: 1.496 MB / 0.5796 GB, free: 31.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002665/0.6334, allocations: 0.5128 MB / 0.5801 GB, free: 30.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/0.6436, allocations: 7.234 MB / 0.5872 GB, free: 23.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002334/0.646, allocations: 2.37 MB / 0.5895 GB, free: 21.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001465/0.6474, allocations: 384.1 kB / 0.5899 GB, free: 20.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003775/0.6478, allocations: 123.4 kB / 0.59 GB, free: 20.7 MB / 366.1 MB Notification: Performance of SimCode: time 8.72e-07/0.6478, allocations: 0 / 0.59 GB, free: 20.7 MB / 366.1 MB Notification: Performance of Templates: time 0.04674/0.6946, allocations: 26.28 MB / 0.6156 GB, free: 10.67 MB / 382.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1) Environment - environmentSimulation: