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.00218/0.002181, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.336/2.336, allocations: 222.9 MB / 239.5 MB, free: 4.723 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.002836/0.002836, allocations: 196.4 kB / 289.8 MB, free: 2.461 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05862/0.05862, allocations: 8.805 MB / 348.7 MB, free: 4.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002561/0.002561, allocations: 79.75 kB / 411.1 MB, free: 42.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1702, allocations: 51.56 MB / 462.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.07256/0.2429, allocations: 44.48 MB / 0.4952 GB, free: 2.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04109/0.284, allocations: 11.67 MB / 0.5066 GB, free: 6.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01714/0.3012, allocations: 342.8 kB / 0.5069 GB, free: 6.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.04294/0.3442, allocations: 11.6 MB / 0.5183 GB, free: 10.53 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03166/0.3759, allocations: 4.386 MB / 0.5225 GB, free: 6.129 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01629/0.3922, allocations: 2.72 MB / 0.5252 GB, free: 3.426 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.4984/0.8907, allocations: 21.3 MB / 0.546 GB, free: 6.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1069/0.9976, allocations: 34.58 MB / 0.5798 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03122/1.029, allocations: 9.279 MB / 0.5888 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03761/1.067, allocations: 11.54 MB / 0.6001 GB, free: 9.164 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01344/1.08, allocations: 2.012 MB / 0.6021 GB, free: 7.152 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02077/1.101, allocations: 2.408 MB / 0.6044 GB, free: 4.773 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01601/1.117, allocations: 5.069 MB / 0.6094 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0388/1.156, allocations: 10.7 MB / 0.6198 GB, free: 5.23 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06423/1.22, allocations: 35.94 MB / 0.6549 GB, free: 1.93 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.316e-05/1.22, allocations: 4 kB / 0.6549 GB, free: 1.926 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.326e-06/1.22, allocations: 0 / 0.6549 GB, free: 1.926 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001459/1.222, allocations: 3.938 kB / 0.6549 GB, free: 1.922 MB / 446.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.1366/1.358, allocations: 23.94 MB / 0.6783 GB, free: 10.02 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.888e-05/1.358, allocations: 8.031 kB / 0.6783 GB, free: 10.01 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1137/1.472, allocations: 11.3 MB / 0.6894 GB, free: 14.81 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05195/1.524, allocations: 13.01 MB / 0.7021 GB, free: 2.273 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003066/1.527, allocations: 1.363 MB / 0.7034 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.7663/2.294, allocations: 1.787 MB / 0.7051 GB, free: 140.1 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.132/2.426, allocations: 29.6 MB / 0.734 GB, free: 133.1 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001459/2.427, allocations: 31.64 kB / 0.7341 GB, free: 133.1 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0108/2.438, allocations: 0.744 MB / 0.7348 GB, free: 132.5 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001668/2.44, allocations: 0.9825 MB / 0.7358 GB, free: 132.4 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09538/2.535, allocations: 27.3 MB / 0.7624 GB, free: 115.9 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2457/2.781, allocations: 94.03 MB / 0.8542 GB, free: 21.21 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.7368/3.518, allocations: 52.02 MB / 0.9051 GB, free: 148.5 MB / 0.5139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.021/3.539, allocations: 7.311 MB / 0.9122 GB, free: 148.4 MB / 0.5139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06623/3.605, allocations: 20.19 MB / 0.9319 GB, free: 143.1 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001178/3.605, allocations: 111.5 kB / 0.932 GB, free: 143 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=683): time 1.476e-05/3.605, allocations: 3.969 kB / 0.932 GB, free: 143 MB / 0.5139 GB Notification: Performance of matching and sorting (n=691): time 0.1534/3.759, allocations: 38.8 MB / 0.9699 GB, free: 127.1 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001614/3.759, allocations: 155.8 kB / 0.9701 GB, free: 127 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02159/3.781, allocations: 7.108 MB / 0.977 GB, free: 124.3 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.002173/3.783, allocations: 137 kB / 0.9771 GB, free: 124.2 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.007467/3.79, allocations: 7.799 MB / 0.9847 GB, free: 117.4 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.004319/3.795, allocations: 2.348 MB / 0.987 GB, free: 115.3 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0073/3.802, allocations: 1.869 MB / 0.9889 GB, free: 114.3 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 7.509e-05/3.802, allocations: 308.7 kB / 0.9892 GB, free: 114 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01314/3.815, allocations: 4.892 MB / 0.9939 GB, free: 110.7 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01745/3.833, allocations: 8.372 MB / 1.002 GB, free: 100.7 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02886/3.862, allocations: 14.07 MB / 1.016 GB, free: 85 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001712/3.862, allocations: 32 kB / 1.016 GB, free: 84.96 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.04826/3.91, allocations: 16.16 MB / 1.032 GB, free: 68.64 MB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001305/3.911, allocations: 55.94 kB / 1.032 GB, free: 68.59 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002695/3.911, allocations: 112 kB / 1.032 GB, free: 68.48 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01093/3.922, allocations: 2.565 MB / 1.034 GB, free: 65.9 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01416/3.936, allocations: 2.098 MB / 1.036 GB, free: 63.8 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04932/3.985, allocations: 28.55 MB / 1.064 GB, free: 34.19 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01494/4, allocations: 0.5229 MB / 1.065 GB, free: 33.67 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003064/4.003, allocations: 464.6 kB / 1.065 GB, free: 33.21 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.02168/4.025, allocations: 6.761 MB / 1.072 GB, free: 26.44 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003236/4.028, allocations: 0.7639 MB / 1.073 GB, free: 25.66 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03824/4.067, allocations: 13.16 MB / 1.085 GB, free: 12.31 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.4347/4.502, allocations: 8.3 MB / 1.094 GB, free: 137.6 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001402/4.502, allocations: 28.27 kB / 1.094 GB, free: 137.6 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002618/4.502, allocations: 34.97 kB / 1.094 GB, free: 137.6 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1027/4.605, allocations: 28.09 MB / 1.121 GB, free: 131.7 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001002/4.605, allocations: 7.906 kB / 1.121 GB, free: 131.7 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00892/4.614, allocations: 1.107 MB / 1.122 GB, free: 131.6 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01108/4.625, allocations: 2.635 MB / 1.125 GB, free: 130.9 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002622/4.628, allocations: 150.7 kB / 1.125 GB, free: 130.8 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05492/4.683, allocations: 32.99 MB / 1.157 GB, free: 107.7 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/4.683, allocations: 9.234 kB / 1.157 GB, free: 107.7 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05379/4.736, allocations: 18.9 MB / 1.176 GB, free: 99.71 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007925/4.744, allocations: 1.77 MB / 1.177 GB, free: 99.11 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004052/4.749, allocations: 134.7 kB / 1.177 GB, free: 99.02 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009403/4.758, allocations: 396.1 kB / 1.178 GB, free: 98.92 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003719/4.762, allocations: 0.5226 MB / 1.178 GB, free: 98.84 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001855/4.764, allocations: 198.4 kB / 1.178 GB, free: 98.79 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.01601/4.78, allocations: 4.787 MB / 1.183 GB, free: 97.08 MB / 0.5139 GB Notification: Performance of sort global known variables: time 7.32e-07/4.78, allocations: 0 / 1.183 GB, free: 97.08 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.02474/4.804, allocations: 3.059 MB / 1.186 GB, free: 95.09 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.003388/4.808, allocations: 363.5 kB / 1.186 GB, free: 94.77 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.03327/4.841, allocations: 13.41 MB / 1.2 GB, free: 81.3 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 1.579e-05/4.841, allocations: 2.594 kB / 1.2 GB, free: 81.3 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.01931/4.861, allocations: 7.595 MB / 1.207 GB, free: 73.62 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02019/4.881, allocations: 2.023 MB / 1.209 GB, free: 71.69 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09758/4.978, allocations: 39.55 MB / 1.248 GB, free: 32.11 MB / 0.5139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02881/5.007, allocations: 10.99 MB / 1.258 GB, free: 21.07 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004995/5.012, allocations: 0.6321 MB / 1.259 GB, free: 20.44 MB / 0.5139 GB Notification: Performance of SimCode: time 3.587e-06/5.012, allocations: 0 / 1.259 GB, free: 20.44 MB / 0.5139 GB Notification: Performance of Templates: time 4.066/9.078, allocations: 1.228 GB / 2.487 GB, free: 19.53 MB / 0.5608 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)