Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.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) Ignoring simflag -noemit -jacobian= since it seems broken on HelloWorld Running command: translateModel(HanserModelica.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Transformer") translateModel(HanserModelica.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008967/0.0008967, allocations: 92.16 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.316/1.316, allocations: 223.3 MB / 240 MB, free: 5.461 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.001012/0.001012, allocations: 168.6 kB / 291.3 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03653/0.03653, allocations: 8.808 MB / 351.2 MB, free: 4.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003296/0.0003296, allocations: 10.53 kB / 417.9 MB, free: 40.89 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06622/0.06657, allocations: 52.56 MB / 470.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.042/0.1086, allocations: 46.75 MB / 0.5051 GB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02096/0.1296, allocations: 12.67 MB / 0.5175 GB, free: 14.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005042/0.1346, allocations: 346.8 kB / 0.5178 GB, free: 13.67 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006052/0.1407, allocations: 3.211 MB / 0.5209 GB, free: 10.44 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01183/0.1526, allocations: 4.939 MB / 0.5257 GB, free: 5.488 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006098/0.1587, allocations: 2.904 MB / 0.5286 GB, free: 2.609 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1803/0.339, allocations: 24.68 MB / 0.5527 GB, free: 8.691 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05955/0.3986, allocations: 44.45 MB / 0.5961 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01673/0.4153, allocations: 9.067 MB / 0.6049 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01377/0.4291, allocations: 10.7 MB / 0.6154 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002291/0.4314, allocations: 1.406 MB / 0.6168 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004498/0.4359, allocations: 1.908 MB / 0.6186 GB, free: 324 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003548/0.4395, allocations: 4.639 MB / 0.6232 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01122/0.4507, allocations: 10.87 MB / 0.6338 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03294/0.4837, allocations: 41.19 MB / 0.674 GB, free: 8.504 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.4837, allocations: 0 / 0.674 GB, free: 8.504 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4837, allocations: 0 / 0.674 GB, free: 8.504 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007149/0.4844, allocations: 0 / 0.674 GB, free: 8.504 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.05858/0.543, allocations: 22.89 MB / 0.6964 GB, free: 1.637 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.5431, allocations: 8.031 kB / 0.6964 GB, free: 1.629 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07553/0.6186, allocations: 13.96 MB / 0.71 GB, free: 3.785 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3439/0.9625, allocations: 14.56 MB / 0.7242 GB, free: 127.3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001213/0.9638, allocations: 1.578 MB / 0.7258 GB, free: 127.3 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00508/0.9689, allocations: 2.078 MB / 0.7278 GB, free: 127 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05503/1.024, allocations: 34.74 MB / 0.7617 GB, free: 113 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004284/1.024, allocations: 35.2 kB / 0.7617 GB, free: 113 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002311/1.027, allocations: 0.8587 MB / 0.7626 GB, free: 112.3 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009652/1.028, allocations: 1.148 MB / 0.7637 GB, free: 112.1 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04658/1.074, allocations: 32.35 MB / 0.7953 GB, free: 85.16 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1286/1.203, allocations: 108 MB / 0.9008 GB, free: 8.066 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3624/1.565, allocations: 50.84 MB / 0.9504 GB, free: 103.1 MB / 0.5139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01385/1.579, allocations: 9.804 MB / 0.96 GB, free: 102 MB / 0.5139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03007/1.609, allocations: 22.65 MB / 0.9821 GB, free: 92.21 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.804e-05/1.609, allocations: 134.8 kB / 0.9822 GB, free: 92.11 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=894): time 9.668e-06/1.609, allocations: 0 / 0.9822 GB, free: 92.11 MB / 0.5139 GB Notification: Performance of matching and sorting (n=906): time 0.05273/1.662, allocations: 39.59 MB / 1.021 GB, free: 73.47 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.005e-05/1.662, allocations: 174.1 kB / 1.021 GB, free: 73.37 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009418/1.672, allocations: 8.354 MB / 1.029 GB, free: 69.43 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.000653/1.672, allocations: 177.6 kB / 1.029 GB, free: 69.25 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.003454/1.676, allocations: 8.677 MB / 1.038 GB, free: 61.58 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.001777/1.678, allocations: 3.053 MB / 1.041 GB, free: 58.83 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001136/1.679, allocations: 0.9227 MB / 1.042 GB, free: 57.91 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 3.181e-05/1.679, allocations: 301.1 kB / 1.042 GB, free: 57.62 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007574/1.686, allocations: 6.261 MB / 1.048 GB, free: 51.35 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008615/1.695, allocations: 9.986 MB / 1.058 GB, free: 39.73 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01724/1.712, allocations: 17.27 MB / 1.075 GB, free: 20.75 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.283e-05/1.712, allocations: 35.94 kB / 1.075 GB, free: 20.72 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.02812/1.74, allocations: 20.34 MB / 1.095 GB, free: 276 kB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 6.048e-05/1.74, allocations: 56 kB / 1.095 GB, free: 220 kB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.172e-05/1.741, allocations: 116 kB / 1.095 GB, free: 104 kB / 0.5139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01419/1.755, allocations: 4.345 MB / 1.099 GB, free: 11.75 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008902/1.764, allocations: 2.41 MB / 1.101 GB, free: 9.332 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2402/2.004, allocations: 38.16 MB / 1.139 GB, free: 129.7 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008419/2.012, allocations: 0.6078 MB / 1.139 GB, free: 129.5 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001693/2.014, allocations: 0.5166 MB / 1.14 GB, free: 129.4 MB / 0.5295 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 531 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],booleanStep2QS[3].y,booleanStep2QS[2].y,booleanStep2QS[1].y,booleanStep1QS[3].y,booleanStep1QS[2].y,booleanStep1QS[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1230): * Single equations (assignments): 1223 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 6 * 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): 6 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%), (30,174,25.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01138/2.025, allocations: 7.919 MB / 1.148 GB, free: 125.8 MB / 0.5295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00167/2.027, allocations: 0.9146 MB / 1.148 GB, free: 125.8 MB / 0.5295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02539/2.053, allocations: 17.07 MB / 1.165 GB, free: 118.9 MB / 0.5295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.935e-05/2.053, allocations: 92.94 kB / 1.165 GB, free: 118.9 MB / 0.5295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-05/2.053, allocations: 38.41 kB / 1.165 GB, free: 118.9 MB / 0.5295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-05/2.053, allocations: 54.66 kB / 1.165 GB, free: 118.9 MB / 0.5295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0473/2.1, allocations: 35.98 MB / 1.2 GB, free: 104.5 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.552e-05/2.1, allocations: 7.844 kB / 1.2 GB, free: 104.5 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005801/2.106, allocations: 1.425 MB / 1.202 GB, free: 104.4 MB / 0.5295 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01307/2.119, allocations: 4.349 MB / 1.206 GB, free: 102.5 MB / 0.5295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005207/2.12, allocations: 205.7 kB / 1.206 GB, free: 102.3 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04227/2.162, allocations: 39.91 MB / 1.245 GB, free: 64.43 MB / 0.5295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/2.162, allocations: 8 kB / 1.245 GB, free: 64.43 MB / 0.5295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03167/2.194, allocations: 24.83 MB / 1.269 GB, free: 39.89 MB / 0.5295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003703/2.197, allocations: 2.252 MB / 1.272 GB, free: 38.02 MB / 0.5295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001392/2.199, allocations: 176 kB / 1.272 GB, free: 37.85 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004872/2.203, allocations: 0.4995 MB / 1.272 GB, free: 37.35 MB / 0.5295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001293/2.205, allocations: 0.7037 MB / 1.273 GB, free: 36.64 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005305/2.205, allocations: 259.9 kB / 1.273 GB, free: 36.39 MB / 0.5295 GB Notification: Performance of sorting global known variables: time 0.006761/2.212, allocations: 5.689 MB / 1.279 GB, free: 30.71 MB / 0.5295 GB Notification: Performance of sort global known variables: time 2.3e-07/2.212, allocations: 4 kB / 1.279 GB, free: 30.71 MB / 0.5295 GB Notification: Performance of remove unused functions: time 0.009231/2.221, allocations: 3.796 MB / 1.283 GB, free: 26.91 MB / 0.5295 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,quadraticLoadTorqueQS.phi,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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (703): * Single equations (assignments): 695 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,1,100.0%), (30,174,25.9%), (1,8,100.0%), (3,25,88.9%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001053/2.222, allocations: 468.4 kB / 1.283 GB, free: 26.48 MB / 0.5295 GB Notification: Performance of simCode: created initialization part: time 0.02171/2.244, allocations: 17.23 MB / 1.3 GB, free: 9.137 MB / 0.5295 GB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/2.244, allocations: 4.188 kB / 1.3 GB, free: 9.133 MB / 0.5295 GB Notification: Performance of simCode: created simulation system equations: time 0.1982/2.442, allocations: 9.886 MB / 1.309 GB, free: 140.3 MB / 0.5295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01842/2.461, allocations: 2.415 MB / 1.312 GB, free: 140.2 MB / 0.5295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05816/2.519, allocations: 47.14 MB / 1.358 GB, free: 120.7 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01136/2.53, allocations: 12.82 MB / 1.37 GB, free: 118 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003488/2.534, allocations: 0.7433 MB / 1.371 GB, free: 118 MB / 0.5295 GB Notification: Performance of SimCode: time 7.41e-07/2.534, allocations: 0 / 1.371 GB, free: 118 MB / 0.5295 GB Notification: Performance of Templates: time 1.833/4.366, allocations: 1.127 GB / 2.498 GB, free: 128.2 MB / 0.6077 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_Transformer -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe 2>&1)