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.001067/0.001067, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.259/1.259, allocations: 222.9 MB / 238.9 MB, free: 4.719 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.001337/0.001337, allocations: 192.5 kB / 289.1 MB, free: 2.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03153/0.03153, allocations: 8.799 MB / 348.1 MB, free: 4.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 73.19 kB / 410.4 MB, free: 42.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08844/0.08976, allocations: 51.57 MB / 462 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.03857/0.1284, allocations: 44.48 MB / 0.4946 GB, free: 2.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02525/0.1537, allocations: 11.65 MB / 0.5059 GB, free: 6.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009627/0.1633, allocations: 342.8 kB / 0.5063 GB, free: 6.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02748/0.1909, allocations: 11.6 MB / 0.5176 GB, free: 10.55 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01816/0.2091, allocations: 4.386 MB / 0.5219 GB, free: 6.152 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009386/0.2185, allocations: 2.723 MB / 0.5245 GB, free: 3.445 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2256/0.4441, allocations: 21.29 MB / 0.5453 GB, free: 6.316 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05403/0.4982, allocations: 34.59 MB / 0.5791 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01816/0.5164, allocations: 9.276 MB / 0.5882 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01977/0.5362, allocations: 11.54 MB / 0.5995 GB, free: 9.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007366/0.5436, allocations: 2.004 MB / 0.6014 GB, free: 7.156 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01008/0.5537, allocations: 2.405 MB / 0.6038 GB, free: 4.781 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009172/0.5629, allocations: 5.082 MB / 0.6087 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02189/0.5848, allocations: 10.7 MB / 0.6192 GB, free: 5.234 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04046/0.6253, allocations: 40.39 MB / 0.6586 GB, free: 13.51 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.6254, allocations: 0 / 0.6586 GB, free: 13.51 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.6254, allocations: 0 / 0.6586 GB, free: 13.51 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.00122/0.6266, allocations: 4 kB / 0.6586 GB, free: 13.51 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: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.06913/0.6957, allocations: 23.95 MB / 0.682 GB, free: 5.594 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.6958, allocations: 8.031 kB / 0.682 GB, free: 5.586 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05831/0.7541, allocations: 11.3 MB / 0.693 GB, free: 10.39 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4365/1.191, allocations: 13.01 MB / 0.7057 GB, free: 77.82 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00153/1.192, allocations: 1.361 MB / 0.7071 GB, free: 77.78 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007625/1.2, allocations: 1.796 MB / 0.7088 GB, free: 77.78 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07147/1.271, allocations: 29.6 MB / 0.7377 GB, free: 76.88 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007052/1.272, allocations: 28.77 kB / 0.7378 GB, free: 76.88 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005454/1.278, allocations: 0.747 MB / 0.7385 GB, free: 76.71 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001028/1.279, allocations: 0.9827 MB / 0.7394 GB, free: 76.61 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0608/1.339, allocations: 27.3 MB / 0.7661 GB, free: 65.04 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.141/1.481, allocations: 94.03 MB / 0.8579 GB, free: 4.488 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3631/1.844, allocations: 52.01 MB / 0.9087 GB, free: 195.7 MB / 0.5608 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01115/1.855, allocations: 7.309 MB / 0.9159 GB, free: 195.6 MB / 0.5608 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03119/1.886, allocations: 20.2 MB / 0.9356 GB, free: 190.3 MB / 0.5608 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.142e-05/1.886, allocations: 115.9 kB / 0.9357 GB, free: 190.2 MB / 0.5608 GB Notification: Performance of pre-optimization done (n=683): time 8.005e-06/1.886, allocations: 0 / 0.9357 GB, free: 190.2 MB / 0.5608 GB Notification: Performance of matching and sorting (n=691): time 0.07456/1.961, allocations: 38.81 MB / 0.9736 GB, free: 174.3 MB / 0.5608 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.261e-05/1.961, allocations: 148.9 kB / 0.9737 GB, free: 174.2 MB / 0.5608 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009145/1.97, allocations: 7.099 MB / 0.9807 GB, free: 171.5 MB / 0.5608 GB Notification: Performance of collectPreVariables (initialization): time 0.001037/1.971, allocations: 140.5 kB / 0.9808 GB, free: 171.3 MB / 0.5608 GB Notification: Performance of collectInitialEqns (initialization): time 0.003777/1.975, allocations: 7.798 MB / 0.9884 GB, free: 164.6 MB / 0.5608 GB Notification: Performance of collectInitialBindings (initialization): time 0.002443/1.977, allocations: 2.346 MB / 0.9907 GB, free: 162.5 MB / 0.5608 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002912/1.98, allocations: 1.872 MB / 0.9925 GB, free: 161.5 MB / 0.5608 GB Notification: Performance of setup shared object (initialization): time 4.278e-05/1.98, allocations: 301.1 kB / 0.9928 GB, free: 161.2 MB / 0.5608 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006258/1.987, allocations: 4.897 MB / 0.9976 GB, free: 158 MB / 0.5608 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008068/1.995, allocations: 8.376 MB / 1.006 GB, free: 148 MB / 0.5608 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01436/2.009, allocations: 14.07 MB / 1.02 GB, free: 132.3 MB / 0.5608 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001026/2.009, allocations: 36 kB / 1.02 GB, free: 132.3 MB / 0.5608 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.02174/2.031, allocations: 16.15 MB / 1.035 GB, free: 116 MB / 0.5608 GB Notification: Performance of prepare postOptimizeDAE: time 6.395e-05/2.031, allocations: 59.94 kB / 1.035 GB, free: 115.9 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001155/2.031, allocations: 112 kB / 1.036 GB, free: 115.8 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005286/2.036, allocations: 2.567 MB / 1.038 GB, free: 113.2 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00747/2.044, allocations: 2.098 MB / 1.04 GB, free: 111.1 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02807/2.072, allocations: 28.55 MB / 1.068 GB, free: 81.52 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006975/2.079, allocations: 0.5267 MB / 1.068 GB, free: 80.99 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001693/2.081, allocations: 456 kB / 1.069 GB, free: 80.54 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.01101/2.092, allocations: 6.765 MB / 1.075 GB, free: 73.76 MB / 0.5608 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002065/2.094, allocations: 0.7717 MB / 1.076 GB, free: 72.98 MB / 0.5608 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01986/2.114, allocations: 13.16 MB / 1.089 GB, free: 59.63 MB / 0.5608 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01131/2.125, allocations: 8.299 MB / 1.097 GB, free: 51.22 MB / 0.5608 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.81e-05/2.125, allocations: 31.94 kB / 1.097 GB, free: 51.19 MB / 0.5608 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.511e-05/2.125, allocations: 39.84 kB / 1.097 GB, free: 51.15 MB / 0.5608 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2554/2.381, allocations: 28.08 MB / 1.125 GB, free: 182.3 MB / 0.5608 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.544e-05/2.381, allocations: 8.781 kB / 1.125 GB, free: 182.3 MB / 0.5608 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005161/2.386, allocations: 1.113 MB / 1.126 GB, free: 182.3 MB / 0.5608 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00649/2.392, allocations: 2.626 MB / 1.128 GB, free: 182.2 MB / 0.5608 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009706/2.393, allocations: 152 kB / 1.128 GB, free: 182.2 MB / 0.5608 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02978/2.423, allocations: 33 MB / 1.161 GB, free: 164 MB / 0.5608 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/2.423, allocations: 7.875 kB / 1.161 GB, free: 164 MB / 0.5608 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02667/2.45, allocations: 18.9 MB / 1.179 GB, free: 156.1 MB / 0.5608 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003879/2.454, allocations: 1.761 MB / 1.181 GB, free: 155.5 MB / 0.5608 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001824/2.456, allocations: 133.1 kB / 1.181 GB, free: 155.4 MB / 0.5608 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004252/2.46, allocations: 394 kB / 1.181 GB, free: 155.3 MB / 0.5608 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001459/2.461, allocations: 0.5284 MB / 1.182 GB, free: 155.2 MB / 0.5608 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005849/2.462, allocations: 203.1 kB / 1.182 GB, free: 155.1 MB / 0.5608 GB Notification: Performance of sorting global known variables: time 0.007315/2.469, allocations: 4.789 MB / 1.187 GB, free: 153.4 MB / 0.5608 GB Notification: Performance of sort global known variables: time 1.7e-07/2.469, allocations: 0 / 1.187 GB, free: 153.4 MB / 0.5608 GB Notification: Performance of remove unused functions: time 0.01237/2.482, allocations: 3.061 MB / 1.19 GB, free: 153.1 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.001465/2.483, allocations: 359.3 kB / 1.19 GB, free: 152.9 MB / 0.5608 GB Notification: Performance of simCode: created initialization part: time 0.01869/2.502, allocations: 13.44 MB / 1.203 GB, free: 147.2 MB / 0.5608 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/2.502, allocations: 0 / 1.203 GB, free: 147.2 MB / 0.5608 GB Notification: Performance of simCode: created simulation system equations: time 0.01009/2.512, allocations: 7.595 MB / 1.211 GB, free: 143.3 MB / 0.5608 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009992/2.522, allocations: 2.02 MB / 1.213 GB, free: 141.7 MB / 0.5608 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05356/2.576, allocations: 40.04 MB / 1.252 GB, free: 104.1 MB / 0.5608 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01251/2.588, allocations: 11.34 MB / 1.263 GB, free: 92.66 MB / 0.5608 GB Notification: Performance of simCode: alias equations: time 0.009713/2.598, allocations: 3.285 MB / 1.266 GB, free: 89.36 MB / 0.5608 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002209/2.6, allocations: 0.5657 MB / 1.267 GB, free: 88.8 MB / 0.5608 GB Notification: Performance of SimCode: time 1.032e-06/2.6, allocations: 0 / 1.267 GB, free: 88.8 MB / 0.5608 GB Notification: Performance of Templates: time 0.3776/2.978, allocations: 132.1 MB / 1.396 GB, free: 147.3 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)