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.001756/0.001756, allocations: 107.2 kB / 16.41 MB, free: 6.492 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.392/1.392, allocations: 222.9 MB / 240 MB, free: 4.398 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.001568/0.001568, allocations: 180.5 kB / 290.4 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03427/0.03427, allocations: 8.793 MB / 349.3 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 87.88 kB / 464.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1081, allocations: 51.57 MB / 0.5041 GB, free: 9.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.2939/0.4021, allocations: 38.31 MB / 0.5415 GB, free: 5.551 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02309/0.4252, allocations: 10.02 MB / 0.5513 GB, free: 3.438 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01031/0.4355, allocations: 290.6 kB / 0.5516 GB, free: 3.379 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02398/0.4595, allocations: 10.14 MB / 0.5615 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01739/0.477, allocations: 4.036 MB / 0.5654 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009268/0.4862, allocations: 2.378 MB / 0.5677 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02604/0.5123, allocations: 16.39 MB / 0.5837 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05186/0.5642, allocations: 31.19 MB / 0.6142 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01731/0.5816, allocations: 8.509 MB / 0.6225 GB, free: 8.348 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01845/0.6001, allocations: 9.328 MB / 0.6316 GB, free: 14.99 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008261/0.6084, allocations: 2.418 MB / 0.634 GB, free: 12.57 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01455/0.623, allocations: 2.812 MB / 0.6367 GB, free: 9.758 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01049/0.6335, allocations: 4.809 MB / 0.6414 GB, free: 4.934 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02321/0.6568, allocations: 9.195 MB / 0.6504 GB, free: 11.7 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04564/0.7024, allocations: 32.11 MB / 0.6817 GB, free: 11.5 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.7025, allocations: 4 kB / 0.6817 GB, free: 11.5 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.7025, allocations: 0 / 0.6817 GB, free: 11.5 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.00103/0.7035, allocations: 0 / 0.6817 GB, free: 11.5 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.06488/0.7684, allocations: 18.67 MB / 0.7 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.7685, allocations: 12.03 kB / 0.7 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04836/0.8169, allocations: 8.298 MB / 0.7081 GB, free: 380 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02631/0.8432, allocations: 10.2 MB / 0.718 GB, free: 6.094 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001726/0.845, allocations: 1.067 MB / 0.7191 GB, free: 5.023 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007186/0.8522, allocations: 1.398 MB / 0.7205 GB, free: 3.625 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5726/1.425, allocations: 22.74 MB / 0.7427 GB, free: 134.1 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006107/1.426, allocations: 23.53 kB / 0.7427 GB, free: 134.1 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005189/1.431, allocations: 0.575 MB / 0.7432 GB, free: 133.7 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001117/1.432, allocations: 0.778 MB / 0.744 GB, free: 133.6 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04969/1.482, allocations: 21.01 MB / 0.7645 GB, free: 125.1 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1167/1.598, allocations: 71.98 MB / 0.8348 GB, free: 57.72 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02639/1.625, allocations: 42.41 MB / 0.8762 GB, free: 10.44 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00788/1.633, allocations: 5.166 MB / 0.8813 GB, free: 5.254 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02518/1.658, allocations: 12.68 MB / 0.8937 GB, free: 8.621 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001096/1.658, allocations: 94.7 kB / 0.8938 GB, free: 8.52 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=498): time 7.093e-06/1.658, allocations: 0 / 0.8938 GB, free: 8.52 MB / 0.5294 GB Notification: Performance of matching and sorting (n=506): time 0.073/1.731, allocations: 26.36 MB / 0.9195 GB, free: 13.82 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/1.731, allocations: 129.3 kB / 0.9196 GB, free: 13.68 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01503/1.746, allocations: 5.763 MB / 0.9253 GB, free: 7.934 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001348/1.748, allocations: 105.7 kB / 0.9254 GB, free: 7.824 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.00617/1.754, allocations: 6.156 MB / 0.9314 GB, free: 1.633 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.003138/1.757, allocations: 1.738 MB / 0.9331 GB, free: 15.91 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006044/1.763, allocations: 1.453 MB / 0.9345 GB, free: 14.45 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001258/1.763, allocations: 309.1 kB / 0.9348 GB, free: 14.15 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008376/1.772, allocations: 3.63 MB / 0.9383 GB, free: 10.52 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01068/1.782, allocations: 6.474 MB / 0.9446 GB, free: 2.742 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3693/2.152, allocations: 10.76 MB / 0.9552 GB, free: 175.9 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001381/2.152, allocations: 27.66 kB / 0.9552 GB, free: 175.9 MB / 0.5763 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.03091/2.183, allocations: 12.09 MB / 0.967 GB, free: 173.5 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.000145/2.183, allocations: 48.88 kB / 0.967 GB, free: 173.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003332/2.183, allocations: 93.09 kB / 0.9671 GB, free: 173.5 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005743/2.189, allocations: 1.594 MB / 0.9687 GB, free: 173.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007511/2.197, allocations: 1.663 MB / 0.9703 GB, free: 173 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0222/2.219, allocations: 19.66 MB / 0.9895 GB, free: 160 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006764/2.226, allocations: 427.2 kB / 0.9899 GB, free: 159.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001562/2.227, allocations: 366.8 kB / 0.9903 GB, free: 159.8 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.01052/2.238, allocations: 5.188 MB / 0.9953 GB, free: 157.3 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00176/2.24, allocations: 0.5981 MB / 0.9959 GB, free: 157.3 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01588/2.256, allocations: 9.368 MB / 1.005 GB, free: 153.4 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009276/2.265, allocations: 5.879 MB / 1.011 GB, free: 151.1 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.308e-05/2.265, allocations: 19.53 kB / 1.011 GB, free: 151.1 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.443e-05/2.265, allocations: 30 kB / 1.011 GB, free: 151.1 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04373/2.309, allocations: 21 MB / 1.031 GB, free: 139.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.979e-05/2.309, allocations: 6.562 kB / 1.031 GB, free: 139.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0033/2.312, allocations: 0.8703 MB / 1.032 GB, free: 138.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004328/2.317, allocations: 1.645 MB / 1.034 GB, free: 137.2 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005788/2.317, allocations: 128 kB / 1.034 GB, free: 137.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02056/2.338, allocations: 23.23 MB / 1.057 GB, free: 113.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/2.338, allocations: 9.188 kB / 1.057 GB, free: 113.2 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02041/2.358, allocations: 13.72 MB / 1.07 GB, free: 99.38 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004234/2.362, allocations: 1.359 MB / 1.071 GB, free: 98 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00106/2.364, allocations: 104 kB / 1.071 GB, free: 97.89 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002891/2.366, allocations: 291.7 kB / 1.072 GB, free: 97.61 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001061/2.368, allocations: 408.4 kB / 1.072 GB, free: 97.21 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000299/2.368, allocations: 152 kB / 1.072 GB, free: 97.06 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.00614/2.374, allocations: 3.891 MB / 1.076 GB, free: 93.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.333e-06/2.374, allocations: 0 / 1.076 GB, free: 93.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01498/2.389, allocations: 2.339 MB / 1.078 GB, free: 90.86 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.002121/2.391, allocations: 326.2 kB / 1.079 GB, free: 90.55 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01816/2.409, allocations: 9.895 MB / 1.088 GB, free: 80.57 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.356e-05/2.409, allocations: 0 / 1.088 GB, free: 80.57 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.009385/2.419, allocations: 5.46 MB / 1.094 GB, free: 75.03 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01128/2.43, allocations: 1.631 MB / 1.095 GB, free: 73.44 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05871/2.489, allocations: 24.2 MB / 1.119 GB, free: 49.14 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01614/2.505, allocations: 8.564 MB / 1.127 GB, free: 40.53 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003268/2.508, allocations: 0.5072 MB / 1.128 GB, free: 40.03 MB / 0.5763 GB Notification: Performance of SimCode: time 1.302e-06/2.508, allocations: 0 / 1.128 GB, free: 40.03 MB / 0.5763 GB Notification: Performance of Templates: time 1.721/4.229, allocations: 0.6684 GB / 1.796 GB, free: 43.23 MB / 0.6075 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)