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.001513/0.001513, allocations: 100.1 kB / 15.88 MB, free: 4 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.262/2.262, allocations: 222.9 MB / 239.5 MB, free: 4.789 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.00232/0.00232, allocations: 192.5 kB / 289.8 MB, free: 2.527 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05419/0.05419, allocations: 8.791 MB / 348.7 MB, free: 4.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002543/0.002543, allocations: 74.88 kB / 411.1 MB, free: 42.37 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1439, allocations: 51.56 MB / 462.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.02304/0.167, allocations: 13.44 MB / 476.1 MB, free: 1.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01365/0.1807, allocations: 4.392 MB / 480.5 MB, free: 13.01 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004295/0.1851, allocations: 83.62 kB / 480.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005242/0.1904, allocations: 0.8473 MB / 481.4 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007437/0.1979, allocations: 1.181 MB / 482.6 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0042/0.2021, allocations: 0.8207 MB / 483.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009594/0.2117, allocations: 4.388 MB / 487.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007387/0.2192, allocations: 2.651 MB / 490.4 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004949/0.2242, allocations: 1.521 MB / 491.9 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00483/0.229, allocations: 1.902 MB / 493.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001858/0.2309, allocations: 296 kB / 494.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003251/0.2342, allocations: 0.4958 MB / 494.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002043/0.2363, allocations: 0.8758 MB / 495.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005497/0.2418, allocations: 1.913 MB / 497.4 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009081/0.2509, allocations: 5.6 MB / 0.4912 GB, free: 6.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.986e-06/0.251, allocations: 3.984 kB / 0.4912 GB, free: 6.309 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.251, allocations: 4 kB / 0.4912 GB, free: 6.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002517/0.2513, allocations: 0 / 0.4912 GB, free: 6.305 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.02164/0.2729, allocations: 4.395 MB / 0.4955 GB, free: 1.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.373e-05/0.273, allocations: 12.03 kB / 0.4955 GB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008656/0.2817, allocations: 0.8241 MB / 0.4963 GB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008424/0.2902, allocations: 2.326 MB / 0.4986 GB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004486/0.2907, allocations: 250.9 kB / 0.4989 GB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001819/0.2925, allocations: 332 kB / 0.4992 GB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01674/0.3093, allocations: 4.322 MB / 0.5034 GB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000223/0.3096, allocations: 7.906 kB / 0.5034 GB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001246/0.3108, allocations: 136 kB / 0.5035 GB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002559/0.3111, allocations: 146.5 kB / 0.5037 GB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0125/0.3236, allocations: 3.594 MB / 0.5072 GB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03991/0.3636, allocations: 13.85 MB / 0.5207 GB, free: 7.551 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01028/0.3739, allocations: 6.617 MB / 0.5272 GB, free: 108 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.384/0.758, allocations: 1.389 MB / 0.5285 GB, free: 65.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01157/0.7696, allocations: 3.665 MB / 0.5321 GB, free: 64.47 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00277/0.7724, allocations: 0.9454 MB / 0.533 GB, free: 64.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 1.297e-05/0.7725, allocations: 0 / 0.533 GB, free: 64.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.02252/0.795, allocations: 5.99 MB / 0.5389 GB, free: 62.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001687/0.7952, allocations: 228.6 kB / 0.5391 GB, free: 62.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006709/0.802, allocations: 1.786 MB / 0.5408 GB, free: 62.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000361/0.8024, allocations: 61.09 kB / 0.5409 GB, free: 62.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002103/0.8045, allocations: 1.465 MB / 0.5423 GB, free: 61.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008336/0.8053, allocations: 0.4925 MB / 0.5428 GB, free: 60.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001183/0.8065, allocations: 344.8 kB / 0.5431 GB, free: 60.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.424e-05/0.8066, allocations: 301.1 kB / 0.5434 GB, free: 60.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002115/0.8088, allocations: 0.6927 MB / 0.5441 GB, free: 60.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002581/0.8113, allocations: 1.352 MB / 0.5454 GB, free: 59.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004599/0.816, allocations: 2.113 MB / 0.5475 GB, free: 57.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.531e-05/0.816, allocations: 5.469 kB / 0.5475 GB, free: 57.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.007678/0.8237, allocations: 2.643 MB / 0.5501 GB, free: 56.49 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.199e-05/0.8238, allocations: 17.66 kB / 0.5501 GB, free: 56.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.612e-05/0.8239, allocations: 21.22 kB / 0.5501 GB, free: 56.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001453/0.8253, allocations: 365.5 kB / 0.5505 GB, free: 56.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002122/0.8275, allocations: 392.7 kB / 0.5508 GB, free: 56.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009351/0.8369, allocations: 7.722 MB / 0.5584 GB, free: 49.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003034/0.8399, allocations: 104.9 kB / 0.5585 GB, free: 49.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004971/0.8405, allocations: 82.75 kB / 0.5586 GB, free: 49.66 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.00344/0.8439, allocations: 1.033 MB / 0.5596 GB, free: 49.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008895/0.8449, allocations: 191.9 kB / 0.5597 GB, free: 48.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006509/0.8514, allocations: 2.341 MB / 0.562 GB, free: 47.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.186e-05/0.8514, allocations: 19.12 kB / 0.562 GB, free: 47.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-05/0.8515, allocations: 7.812 kB / 0.5621 GB, free: 47.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.561e-05/0.8515, allocations: 7.969 kB / 0.5621 GB, free: 47.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01396/0.8655, allocations: 5.132 MB / 0.5671 GB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.069e-05/0.8656, allocations: 5.406 kB / 0.5671 GB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.8668, allocations: 167.8 kB / 0.5672 GB, free: 43.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002337/0.8692, allocations: 0.5309 MB / 0.5678 GB, free: 42.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002507/0.8695, allocations: 43.97 kB / 0.5678 GB, free: 42.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01408/0.8836, allocations: 12.1 MB / 0.5796 GB, free: 29.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.8836, allocations: 4.031 kB / 0.5796 GB, free: 29.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007903/0.8915, allocations: 3.288 MB / 0.5828 GB, free: 26.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001794/0.8934, allocations: 426.6 kB / 0.5832 GB, free: 25.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001011/0.8944, allocations: 39.98 kB / 0.5833 GB, free: 25.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001911/0.8964, allocations: 64.33 kB / 0.5833 GB, free: 25.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004793/0.8969, allocations: 117 kB / 0.5834 GB, free: 25.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/0.897, allocations: 43.98 kB / 0.5835 GB, free: 25.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003424/0.9005, allocations: 1.215 MB / 0.5847 GB, free: 24.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.9005, allocations: 3.938 kB / 0.5847 GB, free: 24.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.005025/0.9055, allocations: 0.5977 MB / 0.5853 GB, free: 23.91 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.0006926/0.9063, allocations: 174.9 kB / 0.5854 GB, free: 23.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005588/0.9119, allocations: 2.408 MB / 0.5878 GB, free: 21.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/0.9119, allocations: 0 / 0.5878 GB, free: 21.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003614/0.9155, allocations: 1.806 MB / 0.5895 GB, free: 19.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005637/0.9212, allocations: 0.5263 MB / 0.5901 GB, free: 18.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01801/0.9392, allocations: 7.282 MB / 0.5972 GB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003674/0.943, allocations: 2.277 MB / 0.5994 GB, free: 9.273 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008727/0.9439, allocations: 147.4 kB / 0.5995 GB, free: 9.129 MB / 366.1 MB Notification: Performance of SimCode: time 1.893e-06/0.9439, allocations: 0 / 0.5995 GB, free: 9.129 MB / 366.1 MB Notification: Performance of Templates: time 0.5844/1.528, allocations: 130.3 MB / 0.7268 GB, free: 141 MB / 462.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)