Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_DOL.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_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_DOL") translateModel(HanserModelica.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007359/0.007359, allocations: 107.1 kB / 15.74 MB, free: 5.996 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.431/1.431, allocations: 222.9 MB / 239.4 MB, free: 4.52 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.001573/0.001573, allocations: 188.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03601/0.03601, allocations: 8.79 MB / 348.6 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 79.88 kB / 463.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1099, allocations: 51.55 MB / 0.5034 GB, free: 9.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.304/0.4139, allocations: 38.31 MB / 0.5408 GB, free: 4.965 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02545/0.4394, allocations: 10.03 MB / 0.5506 GB, free: 2.922 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01244/0.4519, allocations: 290.9 kB / 0.5509 GB, free: 2.863 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02538/0.4773, allocations: 10.21 MB / 0.5609 GB, free: 14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01953/0.4969, allocations: 4.124 MB / 0.5649 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01016/0.5071, allocations: 2.381 MB / 0.5672 GB, free: 9.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02629/0.5334, allocations: 16.38 MB / 0.5832 GB, free: 15.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06433/0.5977, allocations: 31.2 MB / 0.6137 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02102/0.6188, allocations: 8.509 MB / 0.622 GB, free: 8.02 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02046/0.6393, allocations: 9.324 MB / 0.6311 GB, free: 14.66 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01014/0.6495, allocations: 2.414 MB / 0.6334 GB, free: 12.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0149/0.6645, allocations: 2.812 MB / 0.6362 GB, free: 9.441 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01096/0.6755, allocations: 4.805 MB / 0.6409 GB, free: 4.621 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02614/0.7016, allocations: 9.21 MB / 0.6499 GB, free: 11.38 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04994/0.7516, allocations: 32.1 MB / 0.6812 GB, free: 11.19 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.7517, allocations: 0 / 0.6812 GB, free: 11.19 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.7517, allocations: 0 / 0.6812 GB, free: 11.19 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001174/0.7529, allocations: 0 / 0.6812 GB, free: 11.19 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.07359/0.8265, allocations: 18.68 MB / 0.6995 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.8265, allocations: 8.031 kB / 0.6995 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04735/0.8739, allocations: 8.298 MB / 0.7076 GB, free: 56 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02694/0.9009, allocations: 10.21 MB / 0.7175 GB, free: 5.766 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001401/0.9023, allocations: 1.064 MB / 0.7186 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007613/0.91, allocations: 1.402 MB / 0.72 GB, free: 3.297 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6476/1.558, allocations: 22.74 MB / 0.7422 GB, free: 134 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006794/1.558, allocations: 22.67 kB / 0.7422 GB, free: 134 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005018/1.563, allocations: 0.5729 MB / 0.7427 GB, free: 133.5 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00108/1.564, allocations: 0.7765 MB / 0.7435 GB, free: 133.5 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04694/1.611, allocations: 21.01 MB / 0.764 GB, free: 124.9 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1407/1.752, allocations: 71.99 MB / 0.8343 GB, free: 57.23 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02975/1.782, allocations: 42.41 MB / 0.8757 GB, free: 9.941 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008397/1.79, allocations: 5.166 MB / 0.8808 GB, free: 4.758 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02836/1.819, allocations: 12.68 MB / 0.8932 GB, free: 8.129 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001275/1.819, allocations: 90.77 kB / 0.8933 GB, free: 8.031 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=498): time 1.142e-05/1.819, allocations: 0 / 0.8933 GB, free: 8.031 MB / 0.5294 GB Notification: Performance of matching and sorting (n=506): time 0.07056/1.89, allocations: 26.36 MB / 0.919 GB, free: 13.34 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/1.89, allocations: 129.3 kB / 0.9191 GB, free: 13.19 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01465/1.904, allocations: 5.763 MB / 0.9247 GB, free: 7.445 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001388/1.906, allocations: 109.7 kB / 0.9249 GB, free: 7.332 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.005604/1.911, allocations: 6.16 MB / 0.9309 GB, free: 1.137 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.003051/1.914, allocations: 1.73 MB / 0.9326 GB, free: 15.42 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007018/1.922, allocations: 1.461 MB / 0.934 GB, free: 13.95 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001321/1.922, allocations: 301.1 kB / 0.9343 GB, free: 13.66 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007262/1.929, allocations: 3.63 MB / 0.9378 GB, free: 10.02 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01/1.939, allocations: 6.478 MB / 0.9441 GB, free: 2.246 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3874/2.326, allocations: 10.76 MB / 0.9547 GB, free: 175.1 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001154/2.327, allocations: 27.22 kB / 0.9547 GB, free: 175.1 MB / 0.5763 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02633/2.353, allocations: 12.09 MB / 0.9665 GB, free: 172.9 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.884e-05/2.353, allocations: 49.92 kB / 0.9665 GB, free: 172.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002477/2.353, allocations: 93.06 kB / 0.9666 GB, free: 172.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004726/2.358, allocations: 1.596 MB / 0.9682 GB, free: 172.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006827/2.365, allocations: 1.666 MB / 0.9698 GB, free: 172.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02082/2.386, allocations: 19.67 MB / 0.989 GB, free: 159.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007029/2.393, allocations: 422 kB / 0.9894 GB, free: 159.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001806/2.395, allocations: 368.1 kB / 0.9898 GB, free: 159.2 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (865): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * 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): 5 systems {(1,1,100.0%), (12,64,52.1%), (1,5,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.01088/2.406, allocations: 5.182 MB / 0.9948 GB, free: 156.7 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001702/2.407, allocations: 0.5948 MB / 0.9954 GB, free: 156.7 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01573/2.423, allocations: 9.376 MB / 1.005 GB, free: 152.8 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009421/2.432, allocations: 5.874 MB / 1.01 GB, free: 150.5 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.442e-05/2.433, allocations: 19.53 kB / 1.01 GB, free: 150.5 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000102/2.433, allocations: 29.16 kB / 1.01 GB, free: 150.5 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04266/2.475, allocations: 21 MB / 1.031 GB, free: 139.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.933e-05/2.475, allocations: 8 kB / 1.031 GB, free: 139.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003594/2.479, allocations: 0.866 MB / 1.032 GB, free: 138.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005022/2.484, allocations: 1.651 MB / 1.033 GB, free: 136.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001272/2.485, allocations: 121.9 kB / 1.033 GB, free: 136.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0232/2.509, allocations: 23.23 MB / 1.056 GB, free: 112.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/2.509, allocations: 15.5 kB / 1.056 GB, free: 112.5 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01961/2.528, allocations: 13.72 MB / 1.07 GB, free: 98.71 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004023/2.532, allocations: 1.359 MB / 1.071 GB, free: 97.34 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001545/2.534, allocations: 108 kB / 1.071 GB, free: 97.23 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003168/2.537, allocations: 283.7 kB / 1.071 GB, free: 96.95 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009966/2.538, allocations: 408.4 kB / 1.072 GB, free: 96.55 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003286/2.538, allocations: 156 kB / 1.072 GB, free: 96.4 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006038/2.544, allocations: 3.883 MB / 1.076 GB, free: 92.54 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.6e-07/2.544, allocations: 0 / 1.076 GB, free: 92.54 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01178/2.556, allocations: 2.349 MB / 1.078 GB, free: 90.2 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (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,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (1,13,100.0%), (1,5,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (12,64,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001574/2.558, allocations: 326.2 kB / 1.078 GB, free: 89.89 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01882/2.577, allocations: 9.897 MB / 1.088 GB, free: 79.9 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 2.38e-05/2.577, allocations: 0 / 1.088 GB, free: 79.9 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.009921/2.587, allocations: 5.454 MB / 1.093 GB, free: 74.37 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01138/2.598, allocations: 1.627 MB / 1.095 GB, free: 72.79 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05194/2.65, allocations: 24.61 MB / 1.119 GB, free: 48.09 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0128/2.663, allocations: 8.846 MB / 1.127 GB, free: 39.2 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007307/2.67, allocations: 2.535 MB / 1.13 GB, free: 36.66 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001405/2.672, allocations: 455.4 kB / 1.13 GB, free: 36.22 MB / 0.5763 GB Notification: Performance of SimCode: time 1.644e-06/2.672, allocations: 7.938 kB / 1.13 GB, free: 36.21 MB / 0.5763 GB Notification: Performance of Templates: time 0.4998/3.172, allocations: 97.48 MB / 1.226 GB, free: 137.7 MB / 0.5763 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_DOL.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_DOL.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe 2>&1)