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.001324/0.001324, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.548/1.548, allocations: 223.2 MB / 238.9 MB, free: 5.566 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.001246/0.001246, allocations: 181.1 kB / 290.2 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03207/0.03207, allocations: 8.783 MB / 350.1 MB, free: 4.773 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000434/0.0004344, allocations: 12.64 kB / 413.1 MB, free: 43.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1182, allocations: 52.56 MB / 465.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03405/0.1523, allocations: 30.69 MB / 496.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02864/0.181, allocations: 9.652 MB / 0.4941 GB, free: 5.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01057/0.1916, allocations: 251.1 kB / 0.4944 GB, free: 4.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01114/0.2028, allocations: 2.068 MB / 0.4964 GB, free: 2.855 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01952/0.2224, allocations: 3.477 MB / 0.4998 GB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01181/0.2342, allocations: 1.629 MB / 0.5014 GB, free: 13.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.03276/0.267, allocations: 13.64 MB / 0.5147 GB, free: 108 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.5341/0.8011, allocations: 24.4 MB / 0.5385 GB, free: 12.99 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01655/0.8177, allocations: 5.667 MB / 0.5441 GB, free: 12.99 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01816/0.8359, allocations: 6.249 MB / 0.5502 GB, free: 12.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006655/0.8426, allocations: 0.9384 MB / 0.5511 GB, free: 12.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01383/0.8565, allocations: 1.24 MB / 0.5523 GB, free: 12.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008824/0.8653, allocations: 2.886 MB / 0.5551 GB, free: 12.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01075/0.8761, allocations: 3.081 MB / 0.5581 GB, free: 12.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04113/0.9173, allocations: 27.51 MB / 0.585 GB, free: 0 / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.9173, allocations: 0 / 0.585 GB, free: 0 / 366.1 MB Notification: Performance of FrontEnd: time 4.289e-06/0.9174, allocations: 8.031 kB / 0.585 GB, free: 15.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001256/0.9186, allocations: 0 / 0.585 GB, free: 15.99 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.05996/0.9786, allocations: 15.66 MB / 0.6003 GB, free: 3.324 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.9787, allocations: 8.562 kB / 0.6003 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04873/1.027, allocations: 8.212 MB / 0.6083 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03369/1.061, allocations: 9.793 MB / 0.6179 GB, free: 6.031 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001923/1.063, allocations: 1.061 MB / 0.6189 GB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01006/1.073, allocations: 1.395 MB / 0.6203 GB, free: 4.496 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09247/1.166, allocations: 22.55 MB / 0.6423 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001145/1.167, allocations: 19.84 kB / 0.6423 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008776/1.176, allocations: 0.5763 MB / 0.6429 GB, free: 15.35 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001127/1.177, allocations: 0.7831 MB / 0.6436 GB, free: 14.57 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05936/1.236, allocations: 20.94 MB / 0.6641 GB, free: 9.629 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4551/1.691, allocations: 73.03 MB / 0.7354 GB, free: 69.25 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03138/1.723, allocations: 42.4 MB / 0.7768 GB, free: 33.94 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02722/1.75, allocations: 12.44 MB / 0.789 GB, free: 32.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.883e-05/1.75, allocations: 89.59 kB / 0.7891 GB, free: 32.76 MB / 478.1 MB Notification: Performance of pre-optimization done (n=514): time 8.326e-06/1.75, allocations: 0 / 0.7891 GB, free: 32.76 MB / 478.1 MB Notification: Performance of matching and sorting (n=522): time 0.05829/1.809, allocations: 27.45 MB / 0.8159 GB, free: 23.53 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/1.809, allocations: 132.2 kB / 0.816 GB, free: 23.43 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009378/1.818, allocations: 5.657 MB / 0.8215 GB, free: 20.61 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001287/1.819, allocations: 112.9 kB / 0.8216 GB, free: 20.51 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003678/1.823, allocations: 6.125 MB / 0.8276 GB, free: 15.18 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002542/1.826, allocations: 1.78 MB / 0.8293 GB, free: 13.65 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005953/1.826, allocations: 153.1 kB / 0.8295 GB, free: 13.53 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000392/1.827, allocations: 0.6082 MB / 0.8301 GB, free: 13 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005311/1.832, allocations: 3.696 MB / 0.8337 GB, free: 10.11 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006563/1.839, allocations: 6.507 MB / 0.84 GB, free: 2.352 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007927/1.847, allocations: 5.083 MB / 0.845 GB, free: 13.34 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.044e-05/1.847, allocations: 28 kB / 0.845 GB, free: 13.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=976) (initialization): time 0.02817/1.875, allocations: 12.23 MB / 0.857 GB, free: 1.625 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001365/1.875, allocations: 44 kB / 0.857 GB, free: 1.582 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002073/1.875, allocations: 92 kB / 0.8571 GB, free: 1.492 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004889/1.88, allocations: 1.605 MB / 0.8587 GB, free: 15.87 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007457/1.888, allocations: 1.684 MB / 0.8603 GB, free: 14.3 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02567/1.913, allocations: 18.67 MB / 0.8786 GB, free: 11.08 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00854/1.922, allocations: 439.4 kB / 0.879 GB, free: 10.65 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002206/1.924, allocations: 364 kB / 0.8793 GB, free: 10.3 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 421 * 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 (876): * Single equations (assignments): 866 * 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,52.8%) 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.01323/1.937, allocations: 5.194 MB / 0.8844 GB, free: 5.207 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001768/1.939, allocations: 0.605 MB / 0.885 GB, free: 4.598 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01823/1.957, allocations: 9.57 MB / 0.8943 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01236/1.97, allocations: 5.982 MB / 0.9002 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.237e-05/1.97, allocations: 20 kB / 0.9002 GB, free: 5.02 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001484/1.97, allocations: 31.89 kB / 0.9002 GB, free: 4.988 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3898/2.36, allocations: 21.29 MB / 0.921 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.366e-05/2.36, allocations: 10.72 kB / 0.921 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003885/2.364, allocations: 0.8892 MB / 0.9219 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004345/2.368, allocations: 1.622 MB / 0.9235 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003725/2.369, allocations: 128.9 kB / 0.9236 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02322/2.392, allocations: 21.82 MB / 0.9449 GB, free: 140.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.169e-05/2.392, allocations: 15.38 kB / 0.9449 GB, free: 140.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02267/2.415, allocations: 14.91 MB / 0.9595 GB, free: 137.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005678/2.42, allocations: 1.371 MB / 0.9608 GB, free: 136.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001948/2.422, allocations: 108 kB / 0.9609 GB, free: 136.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004188/2.427, allocations: 295.3 kB / 0.9612 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001066/2.428, allocations: 421.6 kB / 0.9616 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003662/2.428, allocations: 152.6 kB / 0.9617 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007431/2.435, allocations: 3.803 MB / 0.9655 GB, free: 135.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.92e-07/2.435, allocations: 3.75 kB / 0.9655 GB, free: 135.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01451/2.45, allocations: 2.346 MB / 0.9678 GB, free: 135 MB / 0.5294 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 (451): * Single equations (assignments): 440 * 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%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12,(1,100.0%) 1,(12,54.2%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0022/2.452, allocations: 322.7 kB / 0.9681 GB, free: 134.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02073/2.473, allocations: 10.04 MB / 0.9779 GB, free: 128.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.856e-05/2.473, allocations: 0 / 0.9779 GB, free: 128.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0108/2.484, allocations: 5.554 MB / 0.9833 GB, free: 123.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0108/2.495, allocations: 1.483 MB / 0.9847 GB, free: 122.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06263/2.557, allocations: 29.71 MB / 1.014 GB, free: 93.55 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0214/2.579, allocations: 9.086 MB / 1.023 GB, free: 84.42 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.01166/2.591, allocations: 2.547 MB / 1.025 GB, free: 81.86 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003624/2.594, allocations: 459.3 kB / 1.026 GB, free: 81.41 MB / 0.5294 GB Notification: Performance of SimCode: time 1.914e-06/2.594, allocations: 0 / 1.026 GB, free: 81.41 MB / 0.5294 GB Notification: Performance of Templates: time 0.4714/3.066, allocations: 95.1 MB / 1.118 GB, free: 159.5 MB / 0.5294 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: