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.001243/0.001243, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.428/1.428, allocations: 222.9 MB / 239 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.001561/0.00156, allocations: 184.5 kB / 289.2 MB, free: 2.469 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03266/0.03266, allocations: 8.795 MB / 348.2 MB, free: 4.855 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 77.98 kB / 410.6 MB, free: 42.32 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1176, allocations: 51.57 MB / 462.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.04657/0.1642, allocations: 44.48 MB / 0.4948 GB, free: 2.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03412/0.1984, allocations: 11.63 MB / 0.5061 GB, free: 6.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01429/0.2128, allocations: 338.8 kB / 0.5064 GB, free: 6.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02957/0.2424, allocations: 11.61 MB / 0.5178 GB, free: 10.46 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01852/0.2609, allocations: 4.352 MB / 0.522 GB, free: 6.102 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01214/0.2731, allocations: 2.701 MB / 0.5247 GB, free: 3.418 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2899/0.563, allocations: 20.98 MB / 0.5451 GB, free: 6.883 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.083/0.6461, allocations: 47.14 MB / 0.5912 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.025/0.6711, allocations: 10.91 MB / 0.6018 GB, free: 4.965 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03085/0.702, allocations: 12.75 MB / 0.6143 GB, free: 12.32 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01237/0.7145, allocations: 3.129 MB / 0.6173 GB, free: 9.191 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01745/0.7319, allocations: 3.537 MB / 0.6208 GB, free: 5.703 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01341/0.7454, allocations: 6.26 MB / 0.6269 GB, free: 15.59 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02713/0.7726, allocations: 11.89 MB / 0.6385 GB, free: 3.793 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06086/0.8335, allocations: 41.19 MB / 0.6787 GB, free: 11.39 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.8335, allocations: 0 / 0.6787 GB, free: 11.39 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.8336, allocations: 0 / 0.6787 GB, free: 11.39 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001505/0.8351, allocations: 0 / 0.6787 GB, free: 11.39 MB / 478.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.09271/0.9278, allocations: 23.95 MB / 0.7021 GB, free: 3.477 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.9279, allocations: 11.97 kB / 0.7021 GB, free: 3.465 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5895/1.517, allocations: 11.3 MB / 0.7132 GB, free: 86.73 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03538/1.553, allocations: 13.01 MB / 0.7259 GB, free: 85.33 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001507/1.554, allocations: 1.364 MB / 0.7272 GB, free: 85.29 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008814/1.563, allocations: 1.796 MB / 0.729 GB, free: 85.28 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08594/1.649, allocations: 29.6 MB / 0.7579 GB, free: 78.08 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008448/1.65, allocations: 23.28 kB / 0.7579 GB, free: 78.07 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008197/1.658, allocations: 0.7467 MB / 0.7586 GB, free: 77.49 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001065/1.659, allocations: 0.9884 MB / 0.7596 GB, free: 77.3 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05811/1.717, allocations: 27.3 MB / 0.7862 GB, free: 50.7 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1605/1.878, allocations: 94.03 MB / 0.8781 GB, free: 4.344 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4341/2.312, allocations: 52.01 MB / 0.9289 GB, free: 183.9 MB / 0.5608 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01303/2.325, allocations: 7.314 MB / 0.936 GB, free: 183.8 MB / 0.5608 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03817/2.363, allocations: 20.2 MB / 0.9557 GB, free: 177.4 MB / 0.5608 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.743e-05/2.364, allocations: 113.5 kB / 0.9558 GB, free: 177.3 MB / 0.5608 GB Notification: Performance of pre-optimization done (n=683): time 8.036e-06/2.364, allocations: 2.844 kB / 0.9558 GB, free: 177.3 MB / 0.5608 GB Notification: Performance of matching and sorting (n=691): time 0.08172/2.445, allocations: 38.79 MB / 0.9937 GB, free: 161.5 MB / 0.5608 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.381e-05/2.445, allocations: 153.3 kB / 0.9939 GB, free: 161.3 MB / 0.5608 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009537/2.455, allocations: 7.103 MB / 1.001 GB, free: 157.9 MB / 0.5608 GB Notification: Performance of collectPreVariables (initialization): time 0.00127/2.456, allocations: 140.1 kB / 1.001 GB, free: 157.8 MB / 0.5608 GB Notification: Performance of collectInitialEqns (initialization): time 0.003993/2.46, allocations: 7.798 MB / 1.009 GB, free: 151 MB / 0.5608 GB Notification: Performance of collectInitialBindings (initialization): time 0.002491/2.463, allocations: 2.346 MB / 1.011 GB, free: 149 MB / 0.5608 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004193/2.467, allocations: 1.876 MB / 1.013 GB, free: 147.3 MB / 0.5608 GB Notification: Performance of setup shared object (initialization): time 6.087e-05/2.467, allocations: 301.1 kB / 1.013 GB, free: 147 MB / 0.5608 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007405/2.474, allocations: 4.899 MB / 1.018 GB, free: 142.1 MB / 0.5608 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008976/2.484, allocations: 8.38 MB / 1.026 GB, free: 132.1 MB / 0.5608 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01475/2.498, allocations: 14.07 MB / 1.04 GB, free: 116.4 MB / 0.5608 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001061/2.498, allocations: 32 kB / 1.04 GB, free: 116.3 MB / 0.5608 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.0243/2.523, allocations: 16.16 MB / 1.055 GB, free: 100 MB / 0.5608 GB Notification: Performance of prepare postOptimizeDAE: time 7.336e-05/2.523, allocations: 52 kB / 1.056 GB, free: 99.96 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001258/2.523, allocations: 116.1 kB / 1.056 GB, free: 99.85 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006138/2.529, allocations: 2.579 MB / 1.058 GB, free: 97.26 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008093/2.537, allocations: 2.102 MB / 1.06 GB, free: 95.15 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02884/2.566, allocations: 30.8 MB / 1.09 GB, free: 63.25 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007346/2.574, allocations: 0.5267 MB / 1.091 GB, free: 62.72 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001615/2.575, allocations: 460 kB / 1.091 GB, free: 62.27 MB / 0.5608 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.009958/2.585, allocations: 6.762 MB / 1.098 GB, free: 55.49 MB / 0.5608 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001744/2.587, allocations: 0.7717 MB / 1.099 GB, free: 54.71 MB / 0.5608 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01924/2.606, allocations: 13.16 MB / 1.111 GB, free: 41.36 MB / 0.5608 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01127/2.617, allocations: 8.303 MB / 1.12 GB, free: 32.96 MB / 0.5608 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.396e-05/2.618, allocations: 32 kB / 1.12 GB, free: 32.93 MB / 0.5608 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001188/2.618, allocations: 39.8 kB / 1.12 GB, free: 32.89 MB / 0.5608 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04923/2.667, allocations: 28.1 MB / 1.147 GB, free: 4.574 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.445e-05/2.667, allocations: 4 kB / 1.147 GB, free: 4.57 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005015/2.672, allocations: 1.104 MB / 1.148 GB, free: 3.465 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006092/2.678, allocations: 2.649 MB / 1.151 GB, free: 0.7852 MB / 0.5608 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001562/2.68, allocations: 152 kB / 1.151 GB, free: 0.6367 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2325/2.912, allocations: 35.88 MB / 1.186 GB, free: 170.7 MB / 0.5608 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.666e-06/2.912, allocations: 4.344 kB / 1.186 GB, free: 170.7 MB / 0.5608 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02785/2.94, allocations: 18.9 MB / 1.204 GB, free: 162.8 MB / 0.5608 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005477/2.946, allocations: 1.769 MB / 1.206 GB, free: 162.2 MB / 0.5608 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002274/2.948, allocations: 127.1 kB / 1.206 GB, free: 162.1 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005255/2.953, allocations: 398.6 kB / 1.207 GB, free: 162 MB / 0.5608 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001962/2.955, allocations: 0.5361 MB / 1.207 GB, free: 161.9 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006902/2.956, allocations: 192.9 kB / 1.207 GB, free: 161.9 MB / 0.5608 GB Notification: Performance of sorting global known variables: time 0.007881/2.964, allocations: 4.788 MB / 1.212 GB, free: 160.2 MB / 0.5608 GB Notification: Performance of sort global known variables: time 4.1e-07/2.964, allocations: 1.625 kB / 1.212 GB, free: 160.2 MB / 0.5608 GB Notification: Performance of remove unused functions: time 0.01325/2.977, allocations: 3.06 MB / 1.215 GB, free: 159.9 MB / 0.5608 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.001629/2.979, allocations: 358.8 kB / 1.215 GB, free: 159.7 MB / 0.5608 GB Notification: Performance of simCode: created initialization part: time 0.04902/3.028, allocations: 25.2 MB / 1.24 GB, free: 145.8 MB / 0.5608 GB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/3.028, allocations: 2.969 kB / 1.24 GB, free: 145.8 MB / 0.5608 GB Notification: Performance of simCode: created simulation system equations: time 0.01023/3.038, allocations: 7.588 MB / 1.247 GB, free: 139 MB / 0.5608 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008816/3.047, allocations: 2.142 MB / 1.249 GB, free: 137.3 MB / 0.5608 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05241/3.099, allocations: 40.04 MB / 1.289 GB, free: 100.3 MB / 0.5608 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01727/3.117, allocations: 11.35 MB / 1.3 GB, free: 89.39 MB / 0.5608 GB Notification: Performance of simCode: alias equations: time 0.009894/3.127, allocations: 3.289 MB / 1.303 GB, free: 86.09 MB / 0.5608 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002348/3.129, allocations: 0.558 MB / 1.303 GB, free: 85.54 MB / 0.5608 GB Notification: Performance of SimCode: time 1.363e-06/3.129, allocations: 0 / 1.303 GB, free: 85.54 MB / 0.5608 GB Notification: Performance of Templates: time 0.4259/3.555, allocations: 136.6 MB / 1.437 GB, free: 151.4 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)