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.001372/0.001372, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.391/1.391, allocations: 222.9 MB / 239 MB, free: 4.762 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.00137/0.00137, allocations: 188.5 kB / 289.2 MB, free: 2.496 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03291/0.03291, allocations: 8.788 MB / 348.2 MB, free: 4.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 73.72 kB / 410.6 MB, free: 42.56 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1203, allocations: 51.56 MB / 462.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01548/0.1358, allocations: 13.44 MB / 475.6 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008513/0.1444, allocations: 4.368 MB / 479.9 MB, free: 13.01 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002861/0.1473, allocations: 79.69 kB / 480 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00342/0.1508, allocations: 0.8629 MB / 480.9 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004976/0.1558, allocations: 1.165 MB / 482.1 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002613/0.1584, allocations: 0.8223 MB / 482.9 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006414/0.1648, allocations: 4.306 MB / 487.2 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003838/0.1687, allocations: 3.186 MB / 490.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002867/0.1716, allocations: 1.791 MB / 492.2 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003591/0.1752, allocations: 2.047 MB / 494.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001138/0.1763, allocations: 0.5039 MB / 494.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00199/0.1783, allocations: 0.7146 MB / 495.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009476/0.1793, allocations: 1.095 MB / 496.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002997/0.1823, allocations: 2.135 MB / 498.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008368/0.1907, allocations: 6.606 MB / 0.4934 GB, free: 3.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.438e-06/0.1908, allocations: 4 kB / 0.4934 GB, free: 3.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.546e-06/0.1908, allocations: 0 / 0.4934 GB, free: 3.555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003038/0.1911, allocations: 0 / 0.4934 GB, free: 3.555 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.01498/0.2061, allocations: 4.41 MB / 0.4977 GB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.2062, allocations: 12.03 kB / 0.4977 GB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004477/0.2107, allocations: 0.824 MB / 0.4985 GB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005271/0.216, allocations: 2.322 MB / 0.5008 GB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000224/0.2162, allocations: 242.9 kB / 0.501 GB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001034/0.2173, allocations: 344 kB / 0.5014 GB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008711/0.226, allocations: 4.307 MB / 0.5056 GB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.943e-05/0.2261, allocations: 11.89 kB / 0.5056 GB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000323/0.2264, allocations: 143.9 kB / 0.5057 GB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001559/0.2266, allocations: 150.5 kB / 0.5059 GB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006917/0.2335, allocations: 3.598 MB / 0.5094 GB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02626/0.2599, allocations: 13.85 MB / 0.5229 GB, free: 4.785 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2597/0.5196, allocations: 6.61 MB / 0.5294 GB, free: 61.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002568/0.5222, allocations: 1.387 MB / 0.5307 GB, free: 61.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006805/0.529, allocations: 3.666 MB / 0.5343 GB, free: 61.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001547/0.5306, allocations: 0.9408 MB / 0.5352 GB, free: 61.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 3.647e-06/0.5306, allocations: 4.703 kB / 0.5352 GB, free: 61.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.01203/0.5427, allocations: 5.986 MB / 0.5411 GB, free: 59.74 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.217e-05/0.5428, allocations: 228.3 kB / 0.5413 GB, free: 59.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002815/0.5456, allocations: 1.785 MB / 0.543 GB, free: 59.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001351/0.5458, allocations: 61.03 kB / 0.5431 GB, free: 59.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001152/0.5469, allocations: 1.467 MB / 0.5445 GB, free: 58.08 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003867/0.5473, allocations: 0.4991 MB / 0.545 GB, free: 57.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005293/0.5478, allocations: 338.9 kB / 0.5453 GB, free: 57.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.451e-05/0.5479, allocations: 302.5 kB / 0.5456 GB, free: 57.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.549, allocations: 0.6937 MB / 0.5463 GB, free: 56.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.5503, allocations: 1.348 MB / 0.5476 GB, free: 55.9 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002384/0.5527, allocations: 2.123 MB / 0.5497 GB, free: 54.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.279e-05/0.5527, allocations: 5.125 kB / 0.5497 GB, free: 54.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.0041/0.5568, allocations: 2.644 MB / 0.5523 GB, free: 53.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.916e-05/0.5569, allocations: 11.81 kB / 0.5523 GB, free: 53.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.191e-05/0.5569, allocations: 15.81 kB / 0.5523 GB, free: 53.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008371/0.5578, allocations: 377.3 kB / 0.5527 GB, free: 53.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.559, allocations: 395.7 kB / 0.553 GB, free: 53.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005622/0.5646, allocations: 8.431 MB / 0.5613 GB, free: 45.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001788/0.5664, allocations: 92 kB / 0.5614 GB, free: 45.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/0.5666, allocations: 93.36 kB / 0.5614 GB, free: 45.8 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.001895/0.5685, allocations: 1.027 MB / 0.5624 GB, free: 45.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004708/0.569, allocations: 202.2 kB / 0.5626 GB, free: 44.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0034/0.5724, allocations: 2.345 MB / 0.5649 GB, free: 43.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.5724, allocations: 22.95 kB / 0.565 GB, free: 43.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/0.5724, allocations: 7.375 kB / 0.565 GB, free: 43.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.5724, allocations: 7.969 kB / 0.565 GB, free: 43.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006616/0.5791, allocations: 5.12 MB / 0.57 GB, free: 39.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.5791, allocations: 0 / 0.57 GB, free: 39.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007291/0.5798, allocations: 180.5 kB / 0.5701 GB, free: 39.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001263/0.5811, allocations: 0.5287 MB / 0.5707 GB, free: 38.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.48e-05/0.5812, allocations: 43.92 kB / 0.5707 GB, free: 38.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009257/0.5905, allocations: 13.26 MB / 0.5836 GB, free: 24.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.5905, allocations: 3.938 kB / 0.5836 GB, free: 24.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005778/0.5963, allocations: 3.275 MB / 0.5868 GB, free: 21.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/0.5978, allocations: 426.6 kB / 0.5873 GB, free: 21.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006836/0.5985, allocations: 59.86 kB / 0.5873 GB, free: 21.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/0.5998, allocations: 55.95 kB / 0.5874 GB, free: 20.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003322/0.6001, allocations: 113.1 kB / 0.5875 GB, free: 20.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.94e-05/0.6002, allocations: 46.61 kB / 0.5875 GB, free: 20.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002241/0.6025, allocations: 1.219 MB / 0.5887 GB, free: 19.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6025, allocations: 0 / 0.5887 GB, free: 19.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002996/0.6055, allocations: 0.5938 MB / 0.5893 GB, free: 19.02 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.0003786/0.6059, allocations: 178.9 kB / 0.5895 GB, free: 18.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004809/0.6107, allocations: 2.824 MB / 0.5922 GB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.413e-06/0.6107, allocations: 4.062 kB / 0.5922 GB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002217/0.6129, allocations: 1.763 MB / 0.5939 GB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003061/0.616, allocations: 0.5606 MB / 0.5945 GB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01157/0.6276, allocations: 7.306 MB / 0.6016 GB, free: 6.273 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002217/0.6298, allocations: 2.331 MB / 0.6039 GB, free: 3.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001561/0.6314, allocations: 417.1 kB / 0.6043 GB, free: 3.504 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004249/0.6319, allocations: 131.4 kB / 0.6044 GB, free: 3.375 MB / 366.1 MB Notification: Performance of SimCode: time 1.983e-06/0.6319, allocations: 4 kB / 0.6044 GB, free: 3.371 MB / 366.1 MB Notification: Performance of Templates: time 0.05721/0.6891, allocations: 30.85 MB / 0.6346 GB, free: 4.84 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 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)