Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Start.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.IMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMS_Start") translateModel(HanserModelica.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 92.62 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.3 MB / 240 MB, free: 5.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.0009314/0.0009314, allocations: 172.6 kB / 291.3 MB, free: 2.062 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03546/0.03546, allocations: 8.812 MB / 351.2 MB, free: 4.543 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003354/0.0003354, allocations: 9.562 kB / 414.5 MB, free: 42.79 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06647/0.06682, allocations: 52.56 MB / 467 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.03834/0.1052, allocations: 42.79 MB / 0.4979 GB, free: 2.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01991/0.1251, allocations: 11.58 MB / 0.5092 GB, free: 6.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005263/0.1304, allocations: 330.8 kB / 0.5095 GB, free: 6.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005682/0.1361, allocations: 2.916 MB / 0.5123 GB, free: 3.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01056/0.1467, allocations: 4.359 MB / 0.5166 GB, free: 14.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005377/0.1521, allocations: 2.61 MB / 0.5191 GB, free: 12.28 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1837/0.3358, allocations: 21.29 MB / 0.5399 GB, free: 7.418 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0536/0.3894, allocations: 39.49 MB / 0.5785 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0102/0.3996, allocations: 7.636 MB / 0.586 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01229/0.412, allocations: 9.266 MB / 0.595 GB, free: 3.828 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002814/0.4148, allocations: 1.215 MB / 0.5962 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004645/0.4195, allocations: 1.618 MB / 0.5978 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00323/0.4227, allocations: 3.944 MB / 0.6016 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01124/0.4339, allocations: 9.377 MB / 0.6108 GB, free: 4.352 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0317/0.4657, allocations: 34.93 MB / 0.6449 GB, free: 2.059 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4657, allocations: 0 / 0.6449 GB, free: 2.059 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.4657, allocations: 0 / 0.6449 GB, free: 2.059 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007889/0.4665, allocations: 0 / 0.6449 GB, free: 2.059 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.05384/0.5204, allocations: 19.89 MB / 0.6643 GB, free: 14.17 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.5204, allocations: 8.031 kB / 0.6643 GB, free: 14.16 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06331/0.5837, allocations: 11.35 MB / 0.6754 GB, free: 2.918 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02504/0.6088, allocations: 13.06 MB / 0.6882 GB, free: 6.316 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001248/0.6101, allocations: 1.362 MB / 0.6895 GB, free: 4.969 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005289/0.6154, allocations: 1.796 MB / 0.6912 GB, free: 3.188 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3906/1.006, allocations: 29.61 MB / 0.7202 GB, free: 131.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003662/1.006, allocations: 28.2 kB / 0.7202 GB, free: 131.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002088/1.009, allocations: 0.7395 MB / 0.7209 GB, free: 131.2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008579/1.009, allocations: 0.9838 MB / 0.7219 GB, free: 131.2 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04259/1.052, allocations: 27.33 MB / 0.7486 GB, free: 121.1 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.105/1.157, allocations: 94.35 MB / 0.8407 GB, free: 39.85 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03183/1.189, allocations: 52 MB / 0.8915 GB, free: 14.96 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01085/1.2, allocations: 7.347 MB / 0.8987 GB, free: 7.598 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3625/1.562, allocations: 20.21 MB / 0.9184 GB, free: 152.5 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.158e-05/1.562, allocations: 110.4 kB / 0.9185 GB, free: 152.4 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=683): time 8.255e-06/1.562, allocations: 0 / 0.9185 GB, free: 152.4 MB / 0.5139 GB Notification: Performance of matching and sorting (n=691): time 0.07841/1.641, allocations: 38.95 MB / 0.9565 GB, free: 138.2 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.945e-05/1.641, allocations: 149.5 kB / 0.9567 GB, free: 138.1 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007875/1.649, allocations: 7.113 MB / 0.9636 GB, free: 135.5 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.000602/1.649, allocations: 137.2 kB / 0.9638 GB, free: 135.4 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.003053/1.652, allocations: 7.804 MB / 0.9714 GB, free: 129.5 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.001486/1.654, allocations: 2.339 MB / 0.9737 GB, free: 127.7 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009153/1.655, allocations: 0.7664 MB / 0.9744 GB, free: 127.4 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 3.307e-05/1.655, allocations: 305 kB / 0.9747 GB, free: 127.1 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006033/1.661, allocations: 4.906 MB / 0.9795 GB, free: 125.2 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006954/1.668, allocations: 8.385 MB / 0.9877 GB, free: 118.8 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01372/1.682, allocations: 14.1 MB / 1.001 GB, free: 104.7 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.266e-05/1.682, allocations: 32 kB / 1.001 GB, free: 104.7 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.02141/1.703, allocations: 16.18 MB / 1.017 GB, free: 88.34 MB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 5.823e-05/1.703, allocations: 56 kB / 1.017 GB, free: 88.29 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.18e-05/1.703, allocations: 116.1 kB / 1.017 GB, free: 88.17 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005691/1.709, allocations: 2.562 MB / 1.02 GB, free: 85.59 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006825/1.716, allocations: 2.098 MB / 1.022 GB, free: 83.49 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02737/1.743, allocations: 28.58 MB / 1.05 GB, free: 53.86 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006456/1.75, allocations: 0.5306 MB / 1.05 GB, free: 53.32 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006767/1.75, allocations: 463.9 kB / 1.051 GB, free: 52.87 MB / 0.5139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * Number of states: 0 () * Number of discrete variables: 12 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,rheostatQS.booleanStep[3].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[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 (1092): * Single equations (assignments): 1079 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * 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): 8 systems {(1,1,100.0%), (18,100,41.7%), (1,5,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00844/1.759, allocations: 6.761 MB / 1.057 GB, free: 46.09 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001221/1.76, allocations: 0.764 MB / 1.058 GB, free: 45.32 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01914/1.779, allocations: 13.2 MB / 1.071 GB, free: 31.9 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01119/1.79, allocations: 8.299 MB / 1.079 GB, free: 23.5 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.725e-05/1.79, allocations: 33.48 kB / 1.079 GB, free: 23.47 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.274e-05/1.791, allocations: 35.88 kB / 1.079 GB, free: 23.43 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2327/2.023, allocations: 28.12 MB / 1.107 GB, free: 135.8 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.97e-05/2.023, allocations: 2.844 kB / 1.107 GB, free: 135.8 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004875/2.028, allocations: 1.111 MB / 1.108 GB, free: 135.8 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006636/2.035, allocations: 2.629 MB / 1.11 GB, free: 135.7 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004565/2.035, allocations: 158.3 kB / 1.111 GB, free: 135.7 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02979/2.065, allocations: 33.02 MB / 1.143 GB, free: 114.4 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/2.065, allocations: 7.875 kB / 1.143 GB, free: 114.4 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0248/2.09, allocations: 18.94 MB / 1.161 GB, free: 106.4 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002994/2.093, allocations: 1.771 MB / 1.163 GB, free: 105.8 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008989/2.094, allocations: 131.5 kB / 1.163 GB, free: 105.7 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003753/2.098, allocations: 414.7 kB / 1.164 GB, free: 105.6 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001153/2.099, allocations: 0.5261 MB / 1.164 GB, free: 105.5 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004171/2.099, allocations: 193.4 kB / 1.164 GB, free: 105.5 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.005733/2.105, allocations: 4.792 MB / 1.169 GB, free: 103.8 MB / 0.5139 GB Notification: Performance of sort global known variables: time 1.71e-07/2.105, allocations: 0 / 1.169 GB, free: 103.8 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.007977/2.113, allocations: 3.056 MB / 1.172 GB, free: 103.5 MB / 0.5139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.inertiaRotor.w,ims.stator.zeroInductor.i0,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.rotor.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,quadraticLoadTorque.phi,imsQS.inertiaRotor.w,imsQS.rotor.stray.port_p.reference.gamma,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,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 (563): * Single equations (assignments): 548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,5,100.0%), (1,8,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (18,100,41.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007845/2.114, allocations: 371.6 kB / 1.172 GB, free: 103.2 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.01622/2.13, allocations: 13.45 MB / 1.185 GB, free: 95.52 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/2.13, allocations: 0.6562 kB / 1.185 GB, free: 95.52 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.009005/2.139, allocations: 7.6 MB / 1.193 GB, free: 88.73 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0119/2.151, allocations: 2.02 MB / 1.195 GB, free: 87.08 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04391/2.195, allocations: 39.73 MB / 1.234 GB, free: 49.17 MB / 0.5139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008957/2.204, allocations: 10.99 MB / 1.244 GB, free: 38.13 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002568/2.206, allocations: 0.636 MB / 1.245 GB, free: 37.49 MB / 0.5139 GB Notification: Performance of SimCode: time 1.202e-06/2.206, allocations: 0 / 1.245 GB, free: 37.49 MB / 0.5139 GB Notification: Performance of Templates: time 2.054/4.26, allocations: 1.225 GB / 2.47 GB, free: 58.55 MB / 0.5764 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMS_Start.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMS_Start.sim & ./HanserModelica_HanserModelica.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe 2>&1)