Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.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_Inverter2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2") translateModel(HanserModelica.InductionMachines.IMC_Inverter2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001195, allocations: 106.8 kB / 16.37 MB, free: 6.477 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.467/1.467, allocations: 222.9 MB / 240 MB, free: 4.578 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.001881/0.001881, allocations: 196.1 kB / 290.3 MB, free: 2.289 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03374/0.03374, allocations: 8.785 MB / 349.3 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00223/0.00223, allocations: 78.89 kB / 412.5 MB, free: 41.78 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1208, allocations: 51.57 MB / 464.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01528/0.1362, allocations: 13.14 MB / 477.2 MB, free: 428 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01032/0.1465, allocations: 4.341 MB / 481.6 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003255/0.1499, allocations: 87.62 kB / 481.7 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003342/0.1533, allocations: 1.021 MB / 482.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005259/0.1585, allocations: 1.288 MB / 484 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002902/0.1615, allocations: 0.8543 MB / 484.8 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006815/0.1683, allocations: 4.041 MB / 488.9 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005959/0.1743, allocations: 3.525 MB / 492.4 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004296/0.1786, allocations: 1.916 MB / 494.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004963/0.1836, allocations: 2.129 MB / 496.4 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00149/0.1851, allocations: 0.5273 MB / 497 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00246/0.1876, allocations: 0.7224 MB / 497.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001196/0.1888, allocations: 1.153 MB / 498.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003891/0.1927, allocations: 2.171 MB / 0.4893 GB, free: 8.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007916/0.2006, allocations: 6.882 MB / 0.496 GB, free: 1.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.2007, allocations: 0 / 0.496 GB, free: 1.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2007, allocations: 4 kB / 0.496 GB, free: 1.598 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001592/0.2009, allocations: 0 / 0.496 GB, free: 1.598 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.01282/0.2137, allocations: 4.446 MB / 0.5003 GB, free: 13.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.2137, allocations: 8.031 kB / 0.5003 GB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004087/0.2178, allocations: 0.8278 MB / 0.5012 GB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004737/0.2226, allocations: 2.477 MB / 0.5036 GB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/0.2228, allocations: 255.1 kB / 0.5038 GB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000492/0.2233, allocations: 332 kB / 0.5041 GB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007427/0.2307, allocations: 4.507 MB / 0.5085 GB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-05/0.2308, allocations: 4 kB / 0.5085 GB, free: 4.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003021/0.2311, allocations: 136 kB / 0.5087 GB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001662/0.2313, allocations: 154.7 kB / 0.5088 GB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006668/0.238, allocations: 3.809 MB / 0.5125 GB, free: 488 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02278/0.2608, allocations: 14.01 MB / 0.5262 GB, free: 2.047 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3/0.5608, allocations: 6.142 MB / 0.5322 GB, free: 58.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002263/0.5631, allocations: 1.199 MB / 0.5334 GB, free: 58.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006024/0.5691, allocations: 3.3 MB / 0.5366 GB, free: 58.37 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.5692, allocations: 50.97 kB / 0.5367 GB, free: 58.33 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.166e-06/0.5692, allocations: 2.344 kB / 0.5367 GB, free: 58.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01075/0.5799, allocations: 5.235 MB / 0.5418 GB, free: 56.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.58, allocations: 63.41 kB / 0.5418 GB, free: 56.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002835/0.5829, allocations: 1.687 MB / 0.5435 GB, free: 56.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.277e-05/0.583, allocations: 46.36 kB / 0.5435 GB, free: 56.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001152/0.5841, allocations: 1.49 MB / 0.545 GB, free: 55.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003006/0.5844, allocations: 420.9 kB / 0.5454 GB, free: 55.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004767/0.5849, allocations: 288.6 kB / 0.5457 GB, free: 55.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.826e-05/0.585, allocations: 301.1 kB / 0.5459 GB, free: 55.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.586, allocations: 0.6249 MB / 0.5466 GB, free: 55.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001265/0.5873, allocations: 1.132 MB / 0.5477 GB, free: 54.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002413/0.5897, allocations: 1.873 MB / 0.5495 GB, free: 52.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.279e-05/0.5898, allocations: 4.375 kB / 0.5495 GB, free: 52.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003673/0.5934, allocations: 2.184 MB / 0.5516 GB, free: 52.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.156e-05/0.5935, allocations: 15.31 kB / 0.5516 GB, free: 52.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.921e-05/0.5935, allocations: 16.94 kB / 0.5517 GB, free: 52.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004063/0.5939, allocations: 133 kB / 0.5518 GB, free: 51.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/0.5954, allocations: 396.4 kB / 0.5522 GB, free: 51.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002258/0.5977, allocations: 3.36 MB / 0.5554 GB, free: 48.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001388/0.5991, allocations: 72.66 kB / 0.5555 GB, free: 48.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.5992, allocations: 69.72 kB / 0.5556 GB, free: 48.69 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.002179/0.6014, allocations: 1.054 MB / 0.5566 GB, free: 48.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003657/0.6018, allocations: 180.6 kB / 0.5568 GB, free: 48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003002/0.6048, allocations: 2.046 MB / 0.5588 GB, free: 46.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.6048, allocations: 11.88 kB / 0.5588 GB, free: 46.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.6048, allocations: 8.406 kB / 0.5588 GB, free: 46.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.6049, allocations: 9.25 kB / 0.5588 GB, free: 46.97 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007796/0.6127, allocations: 4.786 MB / 0.5635 GB, free: 44.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.6127, allocations: 2.156 kB / 0.5635 GB, free: 44.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006843/0.6134, allocations: 156.7 kB / 0.5636 GB, free: 44.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001128/0.6145, allocations: 448 kB / 0.5641 GB, free: 44.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.631e-05/0.6146, allocations: 39.27 kB / 0.5641 GB, free: 44.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00798/0.6226, allocations: 11.06 MB / 0.5749 GB, free: 34.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.6227, allocations: 0 / 0.5749 GB, free: 34.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004151/0.6268, allocations: 2.878 MB / 0.5777 GB, free: 31.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009677/0.6278, allocations: 394.6 kB / 0.5781 GB, free: 31.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001925/0.628, allocations: 31.98 kB / 0.5781 GB, free: 31.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007499/0.6288, allocations: 59.95 kB / 0.5782 GB, free: 31.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002605/0.629, allocations: 105.4 kB / 0.5783 GB, free: 31.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.51e-05/0.6291, allocations: 32 kB / 0.5783 GB, free: 31.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001434/0.6305, allocations: 1.154 MB / 0.5794 GB, free: 30.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6306, allocations: 0 / 0.5794 GB, free: 30.06 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002135/0.6327, allocations: 0.543 MB / 0.58 GB, free: 29.52 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.0003395/0.633, allocations: 157 kB / 0.5801 GB, free: 29.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002735/0.6358, allocations: 1.838 MB / 0.5819 GB, free: 27.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.6358, allocations: 9 kB / 0.5819 GB, free: 27.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001795/0.6376, allocations: 1.486 MB / 0.5834 GB, free: 25.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002048/0.6397, allocations: 0.5388 MB / 0.5839 GB, free: 25.42 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008239/0.6479, allocations: 5.634 MB / 0.5894 GB, free: 19.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001544/0.6495, allocations: 2.368 MB / 0.5917 GB, free: 17.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0013/0.6508, allocations: 391 kB / 0.5921 GB, free: 17.03 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/0.6511, allocations: 119.4 kB / 0.5922 GB, free: 16.91 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.6511, allocations: 0 / 0.5922 GB, free: 16.91 MB / 366.1 MB Notification: Performance of Templates: time 0.04638/0.6975, allocations: 27.58 MB / 0.6191 GB, free: 5.617 MB / 382.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe 2>&1)