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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package HanserModelica with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001009/0.00101, allocations: 170.2 kB / 16.11 MB, free: 5.586 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo): time 0.04243/0.04243, allocations: 8.771 MB / 25.64 MB, free: 3.223 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.789/1.789, allocations: 205.4 MB / 233.9 MB, free: 14.53 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008131/0.0008132, allocations: 93.05 kB / 284.4 MB, free: 14.61 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004562/0.0004564, allocations: 15.98 kB / 344.8 MB, free: 2.141 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2889, allocations: 49.71 MB / 394.5 MB, free: 36.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.137/0.4259, allocations: 110 MB / 0.4927 GB, free: 6.641 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.4262, allocations: 75.97 kB / 0.4927 GB, free: 6.566 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4368/0.863, allocations: 80.67 MB / 0.5715 GB, free: 42.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.8631, allocations: 0 / 0.5715 GB, free: 42.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003375/0.8634, allocations: 83.88 kB / 0.5716 GB, free: 42.53 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 849 * Number of variables: 849 Notification: Performance of Generate backend data structure: time 0.01114/0.8746, allocations: 3.474 MB / 0.575 GB, free: 38.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.8746, allocations: 12.03 kB / 0.575 GB, free: 38.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004751/0.8794, allocations: 0.746 MB / 0.5757 GB, free: 38.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007286/0.8867, allocations: 2.681 MB / 0.5783 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000322/0.8871, allocations: 250.9 kB / 0.5786 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001455/0.8885, allocations: 336.2 kB / 0.5789 GB, free: 34.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01225/0.9008, allocations: 4.248 MB / 0.583 GB, free: 30.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001889/0.901, allocations: 7.984 kB / 0.5831 GB, free: 30.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001003/0.9021, allocations: 140 kB / 0.5832 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001511/0.9022, allocations: 142.5 kB / 0.5833 GB, free: 30.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008313/0.9106, allocations: 3.414 MB / 0.5867 GB, free: 26.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02762/0.9382, allocations: 13.87 MB / 0.6002 GB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005865/0.9441, allocations: 6.738 MB / 0.6068 GB, free: 5.039 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002118/0.9463, allocations: 1.396 MB / 0.6081 GB, free: 3.641 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007087/0.9534, allocations: 3.866 MB / 0.6119 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00164/0.9551, allocations: 1.001 MB / 0.6129 GB, free: 14.64 MB / 394.7 MB Notification: Performance of pre-optimization done (n=155): time 4.127e-06/0.9551, allocations: 3.938 kB / 0.6129 GB, free: 14.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=158): time 0.01305/0.9682, allocations: 6.233 MB / 0.619 GB, free: 8.195 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/0.9684, allocations: 222.9 kB / 0.6192 GB, free: 7.93 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003482/0.9719, allocations: 1.725 MB / 0.6209 GB, free: 6.203 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002195/0.9721, allocations: 61.64 kB / 0.6209 GB, free: 6.137 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001546/0.9737, allocations: 1.423 MB / 0.6223 GB, free: 4.695 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006474/0.9743, allocations: 0.5392 MB / 0.6229 GB, free: 4.148 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.9745, allocations: 32 kB / 0.6229 GB, free: 4.117 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002152/0.9747, allocations: 385.8 kB / 0.6233 GB, free: 3.734 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001365/0.9761, allocations: 0.7144 MB / 0.624 GB, free: 3.02 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001847/0.9779, allocations: 1.328 MB / 0.6253 GB, free: 1.434 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003534/0.9815, allocations: 2.107 MB / 0.6273 GB, free: 15.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.21e-05/0.9815, allocations: 12 kB / 0.6273 GB, free: 15.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.00515/0.9867, allocations: 2.675 MB / 0.6299 GB, free: 12.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.9867, allocations: 12 kB / 0.6299 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.555e-05/0.9868, allocations: 16 kB / 0.63 GB, free: 12.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/0.9878, allocations: 388.4 kB / 0.6303 GB, free: 11.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001473/0.9893, allocations: 407.3 kB / 0.6307 GB, free: 11.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008113/0.9974, allocations: 7.913 MB / 0.6384 GB, free: 3.082 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/0.9993, allocations: 95.95 kB / 0.6385 GB, free: 2.988 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000319/0.9997, allocations: 80 kB / 0.6386 GB, free: 2.91 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsI[3].mean.y,rmsI[3].mean.y,$PRE.rmsI[2].mean.y,rmsI[2].mean.y,$PRE.rmsI[1].mean.y,rmsI[1].mean.y,booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 207 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 7,(3,100.0%) 9,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002584/1.002, allocations: 1.028 MB / 0.6396 GB, free: 1.871 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005661/1.003, allocations: 201.5 kB / 0.6398 GB, free: 1.672 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004857/1.008, allocations: 2.458 MB / 0.6422 GB, free: 15.14 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/1.008, allocations: 16 kB / 0.6422 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-05/1.008, allocations: 8 kB / 0.6422 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.987e-05/1.008, allocations: 11.91 kB / 0.6422 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01037/1.018, allocations: 5.309 MB / 0.6474 GB, free: 9.664 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.014e-06/1.018, allocations: 0 / 0.6474 GB, free: 9.664 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008667/1.019, allocations: 195.8 kB / 0.6476 GB, free: 9.473 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001471/1.021, allocations: 0.5554 MB / 0.6482 GB, free: 8.898 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000124/1.021, allocations: 39.98 kB / 0.6482 GB, free: 8.859 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.226/1.247, allocations: 12.27 MB / 0.6602 GB, free: 88.86 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/1.247, allocations: 2.344 kB / 0.6602 GB, free: 88.86 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005478/1.252, allocations: 3.455 MB / 0.6636 GB, free: 88.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001274/1.254, allocations: 442.9 kB / 0.664 GB, free: 88.31 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002625/1.254, allocations: 51.05 kB / 0.664 GB, free: 88.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008687/1.255, allocations: 75.41 kB / 0.6641 GB, free: 88.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003298/1.255, allocations: 126 kB / 0.6642 GB, free: 88.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.312e-05/1.255, allocations: 43.12 kB / 0.6643 GB, free: 88.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001692/1.257, allocations: 1.173 MB / 0.6654 GB, free: 88.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.257, allocations: 0 / 0.6654 GB, free: 88.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002273/1.259, allocations: 0.6434 MB / 0.666 GB, free: 88.2 MB / 426.7 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.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,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,booleanStep.y,greaterThreshold.y,rmsI[1].mean.y,rmsI[2].mean.y,rmsI[3].mean.y) * 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 (105): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 7,(1,100.0%) 13,(3,100.0%) 9,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000551/1.26, allocations: 365.1 kB / 0.6664 GB, free: 88.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003227/1.263, allocations: 2.497 MB / 0.6688 GB, free: 87.52 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/1.263, allocations: 2.953 kB / 0.6688 GB, free: 87.52 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002245/1.265, allocations: 1.852 MB / 0.6706 GB, free: 86.81 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002606/1.268, allocations: 0.5288 MB / 0.6711 GB, free: 86.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00972/1.278, allocations: 7.277 MB / 0.6782 GB, free: 83.76 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002093/1.28, allocations: 2.329 MB / 0.6805 GB, free: 82.98 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001634/1.281, allocations: 417.2 kB / 0.6809 GB, free: 82.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002841/1.282, allocations: 136.2 kB / 0.6811 GB, free: 82.92 MB / 426.7 MB Notification: Performance of SimCode: time 8.01e-07/1.282, allocations: 0 / 0.6811 GB, free: 82.92 MB / 426.7 MB Notification: Performance of Templates: time 0.056/1.338, allocations: 32.48 MB / 0.7128 GB, free: 79.99 MB / 426.7 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)