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 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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 4.0.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 176.2 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05769/0.05769, allocations: 8.712 MB / 16.79 MB, free: 3.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 221.5 MB / 240.9 MB, free: 13.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009801/0.0009801, allocations: 93.94 kB / 293.8 MB, free: 7.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.093e-05/4.095e-05, allocations: 0 / 352.6 MB, free: 1.238 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1153, allocations: 52.53 MB / 405.2 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3757/0.4911, allocations: 109.5 MB / 0.5026 GB, free: 10.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002144/0.4914, allocations: 76.31 kB / 0.5027 GB, free: 10.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.447/0.9384, allocations: 79.91 MB / 0.5807 GB, free: 76.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.9384, allocations: 0 / 0.5807 GB, free: 76.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002625/0.9387, allocations: 81.45 kB / 0.5808 GB, free: 76.03 MB / 442.7 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.008915/0.9476, allocations: 3.231 MB / 0.584 GB, free: 74.89 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.9477, allocations: 16.73 kB / 0.584 GB, free: 74.89 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004007/0.9517, allocations: 0.7369 MB / 0.5847 GB, free: 74.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007137/0.9588, allocations: 3.321 MB / 0.5879 GB, free: 74.19 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.959, allocations: 107.7 kB / 0.588 GB, free: 74.19 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004496/0.9594, allocations: 202.5 kB / 0.5882 GB, free: 74.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005427/0.9649, allocations: 3.107 MB / 0.5913 GB, free: 74.17 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00588/0.9708, allocations: 3.693 MB / 0.5949 GB, free: 73.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.009e-05/0.9709, allocations: 12.28 kB / 0.5949 GB, free: 73.79 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002582/0.9711, allocations: 0 / 0.5949 GB, free: 73.79 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001304/0.9713, allocations: 145.3 kB / 0.595 GB, free: 73.79 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0236/0.9949, allocations: 13.25 MB / 0.608 GB, free: 70.92 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005971/1.001, allocations: 6.483 MB / 0.6143 GB, free: 66.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002296/1.003, allocations: 1.29 MB / 0.6156 GB, free: 66.05 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006644/1.01, allocations: 3.535 MB / 0.619 GB, free: 65.37 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001255/1.011, allocations: 0.8608 MB / 0.6198 GB, free: 65.24 MB / 442.7 MB Notification: Performance of pre-optimization done (n=141): time 3.186e-06/1.011, allocations: 2.062 kB / 0.6198 GB, free: 65.24 MB / 442.7 MB Notification: Performance of matching and sorting (n=144): time 0.009685/1.021, allocations: 4.37 MB / 0.6241 GB, free: 64.07 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/1.021, allocations: 223.9 kB / 0.6243 GB, free: 63.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003064/1.024, allocations: 1.262 MB / 0.6256 GB, free: 63.64 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001784/1.024, allocations: 31.44 kB / 0.6256 GB, free: 63.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001602/1.026, allocations: 1.47 MB / 0.627 GB, free: 62.88 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004034/1.026, allocations: 476.6 kB / 0.6275 GB, free: 62.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.699e-05/1.026, allocations: 0 / 0.6275 GB, free: 62.57 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/1.027, allocations: 384.4 kB / 0.6279 GB, free: 62.26 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009548/1.028, allocations: 0.6125 MB / 0.6284 GB, free: 62.26 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001255/1.029, allocations: 1.242 MB / 0.6297 GB, free: 61.25 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00177/1.031, allocations: 0.9832 MB / 0.6306 GB, free: 60.87 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.66e-05/1.031, allocations: 4.531 kB / 0.6306 GB, free: 60.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.004733/1.035, allocations: 2.459 MB / 0.633 GB, free: 59.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/1.035, allocations: 13.31 kB / 0.633 GB, free: 59.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.529e-05/1.035, allocations: 18.72 kB / 0.6331 GB, free: 59.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008857/1.036, allocations: 356.3 kB / 0.6334 GB, free: 59.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/1.038, allocations: 384.3 kB / 0.6338 GB, free: 59.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005614/1.043, allocations: 7.405 MB / 0.641 GB, free: 53.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001875/1.045, allocations: 66.39 kB / 0.6411 GB, free: 53.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/1.045, allocations: 78.72 kB / 0.6411 GB, free: 53.52 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsI[3].mean.y_last,rmsI[3].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[1].mean.y_last,rmsI[1].mean.y_last,booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 201 * 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,(2,100.0%) 8,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003729/1.046, allocations: 170.4 kB / 0.6413 GB, free: 53.39 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002542/1.046, allocations: 178.9 kB / 0.6415 GB, free: 53.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003782/1.05, allocations: 2.251 MB / 0.6437 GB, free: 52.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/1.05, allocations: 13.44 kB / 0.6437 GB, free: 52.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/1.05, allocations: 8.469 kB / 0.6437 GB, free: 52.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.491e-05/1.05, allocations: 6.75 kB / 0.6437 GB, free: 52.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007258/1.057, allocations: 4.609 MB / 0.6482 GB, free: 50.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/1.057, allocations: 0.9375 kB / 0.6482 GB, free: 50.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007188/1.058, allocations: 176.4 kB / 0.6484 GB, free: 50.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001199/1.059, allocations: 0.5101 MB / 0.6489 GB, free: 49.96 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.836e-05/1.059, allocations: 22.02 kB / 0.6489 GB, free: 49.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008522/1.068, allocations: 11.62 MB / 0.6602 GB, free: 40.26 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/1.068, allocations: 3.938 kB / 0.6602 GB, free: 40.26 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004694/1.072, allocations: 3.254 MB / 0.6634 GB, free: 38.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008685/1.073, allocations: 400.8 kB / 0.6638 GB, free: 38.29 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002273/1.074, allocations: 21.89 kB / 0.6638 GB, free: 38.28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007708/1.074, allocations: 47.19 kB / 0.6639 GB, free: 38.28 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002651/1.075, allocations: 119.1 kB / 0.664 GB, free: 38.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.488e-05/1.075, allocations: 44.69 kB / 0.664 GB, free: 38.24 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00127/1.076, allocations: 0.9322 MB / 0.6649 GB, free: 37.83 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.076, allocations: 0 / 0.6649 GB, free: 37.83 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002448/1.078, allocations: 0.544 MB / 0.6655 GB, free: 37.81 MB / 442.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_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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 84 * 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%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005231/1.079, allocations: 353.3 kB / 0.6658 GB, free: 37.65 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002906/1.082, allocations: 2.194 MB / 0.6679 GB, free: 36.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/1.082, allocations: 1.625 kB / 0.6679 GB, free: 36.46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001915/1.084, allocations: 1.627 MB / 0.6695 GB, free: 35.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001845/1.086, allocations: 399.3 kB / 0.6699 GB, free: 35.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007935/1.094, allocations: 4.715 MB / 0.6745 GB, free: 33.19 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001776/1.095, allocations: 2.378 MB / 0.6768 GB, free: 32.13 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001438/1.097, allocations: 385.6 kB / 0.6772 GB, free: 32.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000257/1.097, allocations: 116.4 kB / 0.6773 GB, free: 32.07 MB / 442.7 MB Notification: Performance of SimCode: time 1.062e-06/1.097, allocations: 4 kB / 0.6773 GB, free: 32.06 MB / 442.7 MB Notification: Performance of Templates: time 0.04273/1.14, allocations: 24.59 MB / 0.7013 GB, free: 28.1 MB / 442.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)