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.0008264/0.0008264, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.45/1.45, allocations: 223.3 MB / 239 MB, free: 5.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.001019/0.001019, allocations: 172.5 kB / 290.3 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03263/0.03263, allocations: 8.802 MB / 350.2 MB, free: 4.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003891/0.0003893, allocations: 14.16 kB / 413.2 MB, free: 42.97 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1184, allocations: 52.55 MB / 465.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03518/0.1536, allocations: 33.51 MB / 499.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02672/0.1804, allocations: 9.298 MB / 0.4966 GB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01007/0.1905, allocations: 271.1 kB / 0.4969 GB, free: 2.387 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01034/0.2009, allocations: 1.88 MB / 0.4987 GB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01675/0.2177, allocations: 3.344 MB / 0.502 GB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007651/0.2254, allocations: 1.577 MB / 0.5035 GB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.03073/0.2561, allocations: 18.78 MB / 0.5219 GB, free: 8.742 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.52/0.7761, allocations: 24.62 MB / 0.5459 GB, free: 7.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01488/0.7911, allocations: 6.09 MB / 0.5519 GB, free: 7.426 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01566/0.8068, allocations: 6.893 MB / 0.5586 GB, free: 7.422 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00589/0.8127, allocations: 0.9417 MB / 0.5595 GB, free: 7.418 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0101/0.8228, allocations: 1.299 MB / 0.5608 GB, free: 7.418 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007956/0.8308, allocations: 2.989 MB / 0.5637 GB, free: 7.418 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01031/0.8412, allocations: 3.083 MB / 0.5667 GB, free: 7.387 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04776/0.889, allocations: 28.34 MB / 0.5944 GB, free: 11.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.889, allocations: 0 / 0.5944 GB, free: 11.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.889, allocations: 0 / 0.5944 GB, free: 11.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001298/0.8904, allocations: 4 kB / 0.5944 GB, free: 11.21 MB / 382.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.05921/0.9496, allocations: 15.76 MB / 0.6098 GB, free: 13.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.951e-05/0.9497, allocations: 8.562 kB / 0.6098 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04731/0.997, allocations: 8.288 MB / 0.6179 GB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02585/1.023, allocations: 9.754 MB / 0.6274 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001571/1.025, allocations: 1.065 MB / 0.6284 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008656/1.033, allocations: 1.398 MB / 0.6298 GB, free: 11.33 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0871/1.12, allocations: 22.68 MB / 0.652 GB, free: 4.602 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008164/1.121, allocations: 15.81 kB / 0.652 GB, free: 4.586 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007688/1.129, allocations: 0.5825 MB / 0.6525 GB, free: 4.02 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001051/1.13, allocations: 0.7893 MB / 0.6533 GB, free: 3.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05908/1.189, allocations: 20.93 MB / 0.6737 GB, free: 14.3 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5948/1.784, allocations: 73.09 MB / 0.7451 GB, free: 95.92 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03443/1.818, allocations: 42.4 MB / 0.7865 GB, free: 60.29 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01001/1.828, allocations: 5.253 MB / 0.7917 GB, free: 57.99 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03309/1.862, allocations: 12.82 MB / 0.8042 GB, free: 49.54 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.636e-05/1.862, allocations: 93.11 kB / 0.8043 GB, free: 49.46 MB / 478.1 MB Notification: Performance of pre-optimization done (n=504): time 1.124e-05/1.862, allocations: 0 / 0.8043 GB, free: 49.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=512): time 0.07901/1.941, allocations: 29.03 MB / 0.8326 GB, free: 27.52 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.477e-05/1.941, allocations: 129.4 kB / 0.8327 GB, free: 27.37 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01388/1.955, allocations: 5.716 MB / 0.8383 GB, free: 21.68 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00152/1.956, allocations: 113.7 kB / 0.8384 GB, free: 21.56 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004836/1.961, allocations: 6.152 MB / 0.8444 GB, free: 15.38 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002899/1.964, allocations: 1.746 MB / 0.8461 GB, free: 13.64 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001642/1.966, allocations: 155.9 kB / 0.8463 GB, free: 13.49 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0006165/1.966, allocations: 0.61 MB / 0.8469 GB, free: 12.88 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006331/1.973, allocations: 3.645 MB / 0.8505 GB, free: 9.227 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00728/1.98, allocations: 6.502 MB / 0.8568 GB, free: 1.426 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008657/1.989, allocations: 5.037 MB / 0.8617 GB, free: 12.38 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.997e-05/1.989, allocations: 28 kB / 0.8617 GB, free: 12.35 MB / 494.1 MB Notification: Performance of matching and sorting (n=968) (initialization): time 0.03469/2.024, allocations: 12.14 MB / 0.8736 GB, free: 144 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002268/2.024, allocations: 44 kB / 0.8736 GB, free: 100 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003248/2.024, allocations: 92 kB / 0.8737 GB, free: 8 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006145/2.03, allocations: 1.613 MB / 0.8753 GB, free: 14.38 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008008/2.038, allocations: 1.669 MB / 0.8769 GB, free: 12.71 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3405/2.379, allocations: 18.23 MB / 0.8947 GB, free: 140.3 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008203/2.387, allocations: 426.8 kB / 0.8952 GB, free: 140.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002897/2.39, allocations: 366.5 kB / 0.8955 GB, free: 140.3 MB / 0.4982 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[1].y,booleanStepQS[2].y,booleanStepQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (868): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * 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: 5 {(1,100.0%) 1,(12,54.2%) 64,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01593/2.406, allocations: 5.189 MB / 0.9006 GB, free: 140.2 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002042/2.408, allocations: 0.5955 MB / 0.9011 GB, free: 140.2 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01907/2.427, allocations: 9.459 MB / 0.9104 GB, free: 139.7 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008389/2.436, allocations: 5.936 MB / 0.9162 GB, free: 139.2 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.205e-05/2.436, allocations: 23.73 kB / 0.9162 GB, free: 139.2 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.442e-05/2.436, allocations: 25.08 kB / 0.9162 GB, free: 139.2 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03814/2.474, allocations: 21.14 MB / 0.9369 GB, free: 130.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.239e-05/2.474, allocations: 7.625 kB / 0.9369 GB, free: 130.5 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003321/2.477, allocations: 0.8636 MB / 0.9377 GB, free: 130.5 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004253/2.482, allocations: 1.63 MB / 0.9393 GB, free: 130 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004992/2.482, allocations: 129.1 kB / 0.9394 GB, free: 130 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02107/2.503, allocations: 21.35 MB / 0.9603 GB, free: 114.3 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.704e-06/2.503, allocations: 13 kB / 0.9603 GB, free: 114.3 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02016/2.523, allocations: 13.83 MB / 0.9738 GB, free: 102.1 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004278/2.528, allocations: 1.369 MB / 0.9751 GB, free: 100.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002329/2.53, allocations: 107.9 kB / 0.9752 GB, free: 100.8 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004488/2.535, allocations: 302 kB / 0.9755 GB, free: 100.5 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001455/2.536, allocations: 410.2 kB / 0.9759 GB, free: 100.1 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004358/2.537, allocations: 162.7 kB / 0.9761 GB, free: 99.93 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.009542/2.546, allocations: 3.836 MB / 0.9798 GB, free: 96.12 MB / 0.4982 GB Notification: Performance of sort global known variables: time 9.12e-07/2.546, allocations: 1.859 kB / 0.9798 GB, free: 96.12 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01349/2.56, allocations: 2.342 MB / 0.9821 GB, free: 93.79 MB / 0.4982 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 (441): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(12,52.8%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001962/2.562, allocations: 317.9 kB / 0.9824 GB, free: 93.5 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01704/2.579, allocations: 9.919 MB / 0.9921 GB, free: 83.48 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/2.579, allocations: 4 kB / 0.9921 GB, free: 83.48 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.009402/2.588, allocations: 5.49 MB / 0.9975 GB, free: 77.91 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0126/2.601, allocations: 1.569 MB / 0.999 GB, free: 76.38 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05801/2.659, allocations: 29.72 MB / 1.028 GB, free: 46.55 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01535/2.674, allocations: 8.858 MB / 1.037 GB, free: 37.65 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.009399/2.684, allocations: 2.531 MB / 1.039 GB, free: 35.11 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002368/2.686, allocations: 455.4 kB / 1.04 GB, free: 34.67 MB / 0.4982 GB Notification: Performance of SimCode: time 1.142e-06/2.686, allocations: 0 / 1.04 GB, free: 34.67 MB / 0.4982 GB Notification: Performance of Templates: time 0.4473/3.133, allocations: 95.59 MB / 1.133 GB, free: 124.6 MB / 0.5138 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_DOL.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: