Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.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_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz") translateModel(HanserModelica.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 98.8 kB / 16.35 MB, free: 5.828 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.42/1.42, allocations: 222.9 MB / 240 MB, free: 4.535 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.001364/0.001363, allocations: 192.5 kB / 290.3 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03405/0.03405, allocations: 8.801 MB / 349.3 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001637, allocations: 77.92 kB / 412.5 MB, free: 41.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.124, allocations: 51.56 MB / 464.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01525/0.1393, allocations: 13.59 MB / 477.7 MB, free: 15.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01019/0.1495, allocations: 4.442 MB / 482.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003138/0.1527, allocations: 79.69 kB / 482.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003821/0.1566, allocations: 0.9901 MB / 483.2 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005789/0.1624, allocations: 1.301 MB / 484.5 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002875/0.1653, allocations: 0.8982 MB / 485.4 MB, free: 8.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006175/0.1715, allocations: 4.174 MB / 489.5 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004666/0.1762, allocations: 3.189 MB / 492.7 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005151/0.1814, allocations: 1.908 MB / 494.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004093/0.1855, allocations: 2.07 MB / 496.7 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008187/0.1863, allocations: 0.5117 MB / 497.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001626/0.188, allocations: 0.7029 MB / 497.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001/0.189, allocations: 1.102 MB / 499 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002611/0.1916, allocations: 2.143 MB / 0.4894 GB, free: 8.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007266/0.1989, allocations: 6.675 MB / 0.4959 GB, free: 1.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.1989, allocations: 0 / 0.4959 GB, free: 1.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1989, allocations: 0 / 0.4959 GB, free: 1.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001466/0.1991, allocations: 4 kB / 0.4959 GB, free: 1.547 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: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.01284/0.2119, allocations: 4.41 MB / 0.5003 GB, free: 13.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.212, allocations: 8.031 kB / 0.5003 GB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004203/0.2162, allocations: 0.8163 MB / 0.5011 GB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004888/0.2211, allocations: 2.447 MB / 0.5034 GB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.2213, allocations: 242.9 kB / 0.5037 GB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005405/0.2219, allocations: 340 kB / 0.504 GB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007585/0.2295, allocations: 4.31 MB / 0.5082 GB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.86e-05/0.2296, allocations: 7.906 kB / 0.5082 GB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002848/0.2299, allocations: 136 kB / 0.5083 GB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001461/0.23, allocations: 150.5 kB / 0.5085 GB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006181/0.2362, allocations: 3.598 MB / 0.512 GB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0213/0.2575, allocations: 13.68 MB / 0.5254 GB, free: 2.848 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3056/0.5632, allocations: 6.617 MB / 0.5318 GB, free: 59.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002614/0.5659, allocations: 1.386 MB / 0.5332 GB, free: 59.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006619/0.5725, allocations: 3.65 MB / 0.5367 GB, free: 58.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001504/0.574, allocations: 0.9435 MB / 0.5377 GB, free: 58.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 3.226e-06/0.574, allocations: 0 / 0.5377 GB, free: 58.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.01224/0.5863, allocations: 5.994 MB / 0.5435 GB, free: 57.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.429e-05/0.5864, allocations: 229.9 kB / 0.5437 GB, free: 56.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003042/0.5895, allocations: 1.779 MB / 0.5455 GB, free: 56.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001318/0.5896, allocations: 57.11 kB / 0.5455 GB, free: 56.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001208/0.5908, allocations: 1.466 MB / 0.547 GB, free: 55.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003699/0.5912, allocations: 0.4993 MB / 0.5475 GB, free: 55.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005301/0.5918, allocations: 341.5 kB / 0.5478 GB, free: 54.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.666e-05/0.5918, allocations: 302.4 kB / 0.5481 GB, free: 54.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/0.5929, allocations: 0.6951 MB / 0.5487 GB, free: 54.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.5943, allocations: 1.345 MB / 0.5501 GB, free: 53.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002581/0.5969, allocations: 2.12 MB / 0.5521 GB, free: 51.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.237e-05/0.5969, allocations: 4.719 kB / 0.5521 GB, free: 51.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004599/0.6015, allocations: 2.644 MB / 0.5547 GB, free: 50.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/0.6016, allocations: 19.66 kB / 0.5547 GB, free: 50.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.633e-05/0.6016, allocations: 24.14 kB / 0.5548 GB, free: 50.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008765/0.6025, allocations: 370 kB / 0.5551 GB, free: 50.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.6037, allocations: 388.4 kB / 0.5555 GB, free: 50.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005899/0.6096, allocations: 8.43 MB / 0.5637 GB, free: 43.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001916/0.6115, allocations: 101.5 kB / 0.5638 GB, free: 43.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001357/0.6117, allocations: 87.5 kB / 0.5639 GB, free: 43.15 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,rmsI[3].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[1].mean.y_last,$PRE.rmsI[1].mean.y_last,idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001903/0.6136, allocations: 1.038 MB / 0.5649 GB, free: 42.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004039/0.614, allocations: 201.7 kB / 0.5651 GB, free: 42.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003415/0.6174, allocations: 2.343 MB / 0.5674 GB, free: 40.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.6174, allocations: 11.84 kB / 0.5674 GB, free: 40.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/0.6175, allocations: 12.41 kB / 0.5674 GB, free: 40.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.6175, allocations: 3.984 kB / 0.5674 GB, free: 40.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009758/0.6272, allocations: 5.125 MB / 0.5724 GB, free: 37.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/0.6273, allocations: 8.188 kB / 0.5724 GB, free: 37.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/0.6284, allocations: 171.8 kB / 0.5726 GB, free: 37.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00182/0.6303, allocations: 0.5309 MB / 0.5731 GB, free: 36.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001392/0.6304, allocations: 43.92 kB / 0.5731 GB, free: 36.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0126/0.643, allocations: 13.25 MB / 0.5861 GB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.6431, allocations: 4.031 kB / 0.5861 GB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00619/0.6493, allocations: 3.279 MB / 0.5893 GB, free: 19.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/0.6507, allocations: 434.5 kB / 0.5897 GB, free: 18.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003545/0.6511, allocations: 39.94 kB / 0.5897 GB, free: 18.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/0.6522, allocations: 67.95 kB / 0.5898 GB, free: 18.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003731/0.6526, allocations: 113.8 kB / 0.5899 GB, free: 18.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.6527, allocations: 47.98 kB / 0.59 GB, free: 18.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002111/0.6548, allocations: 1.211 MB / 0.5911 GB, free: 17.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6548, allocations: 0 / 0.5911 GB, free: 17.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003392/0.6582, allocations: 0.6015 MB / 0.5917 GB, free: 16.88 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (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,quadraticLoadTorque.phi,cRun.v,cStart.v,rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control,idealOpener.control,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,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.0004035/0.6586, allocations: 173.2 kB / 0.5919 GB, free: 16.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004376/0.663, allocations: 2.406 MB / 0.5942 GB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.6631, allocations: 4.25 kB / 0.5943 GB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00278/0.6658, allocations: 1.763 MB / 0.596 GB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003222/0.6691, allocations: 0.5592 MB / 0.5965 GB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.6811, allocations: 5.896 MB / 0.6023 GB, free: 5.969 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002198/0.6834, allocations: 2.338 MB / 0.6046 GB, free: 3.602 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001927/0.6853, allocations: 419.4 kB / 0.605 GB, free: 3.199 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000386/0.6857, allocations: 127.4 kB / 0.6051 GB, free: 3.074 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.6857, allocations: 1.422 kB / 0.6051 GB, free: 3.074 MB / 366.1 MB Notification: Performance of Templates: time 0.06018/0.7459, allocations: 30.84 MB / 0.6352 GB, free: 4.555 MB / 398.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)