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.001023/0.001023, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.497/1.497, allocations: 223.3 MB / 239.1 MB, free: 5.418 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.001582/0.001582, allocations: 180.5 kB / 290.3 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03414/0.03414, allocations: 8.795 MB / 350.2 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004032/0.0004032, allocations: 15.86 kB / 413.2 MB, free: 42.96 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1126, allocations: 52.56 MB / 465.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.04348/0.1561, allocations: 39.63 MB / 0.4936 GB, free: 5.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02628/0.1824, allocations: 10.97 MB / 0.5043 GB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01088/0.1934, allocations: 322.9 kB / 0.5046 GB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01063/0.204, allocations: 2.225 MB / 0.5067 GB, free: 8.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01906/0.2231, allocations: 3.998 MB / 0.5106 GB, free: 4.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0118/0.2349, allocations: 1.981 MB / 0.5126 GB, free: 2.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.5321/0.767, allocations: 23.09 MB / 0.5351 GB, free: 8.902 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07058/0.8377, allocations: 31.96 MB / 0.5663 GB, free: 4.555 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02074/0.8585, allocations: 7.767 MB / 0.5739 GB, free: 4.551 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02032/0.8788, allocations: 8.833 MB / 0.5825 GB, free: 2.488 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007607/0.8865, allocations: 1.215 MB / 0.5837 GB, free: 1.273 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01354/0.9001, allocations: 1.658 MB / 0.5854 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01008/0.9102, allocations: 3.87 MB / 0.5891 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01185/0.9221, allocations: 3.972 MB / 0.593 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04693/0.9691, allocations: 34.91 MB / 0.6271 GB, free: 14.77 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.077e-05/0.9691, allocations: 0 / 0.6271 GB, free: 14.77 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.9692, allocations: 2.438 kB / 0.6271 GB, free: 14.77 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.001631/0.9708, allocations: 0 / 0.6271 GB, free: 14.77 MB / 414.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.06567/1.036, allocations: 20.07 MB / 0.6467 GB, free: 12.03 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/1.037, allocations: 8.031 kB / 0.6467 GB, free: 12.02 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06024/1.097, allocations: 11.36 MB / 0.6578 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0329/1.13, allocations: 12.87 MB / 0.6704 GB, free: 4.441 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001967/1.132, allocations: 1.364 MB / 0.6717 GB, free: 3.094 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008347/1.14, allocations: 1.795 MB / 0.6735 GB, free: 1.316 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0935/1.234, allocations: 29.46 MB / 0.7022 GB, free: 3.766 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000884/1.235, allocations: 26.86 kB / 0.7023 GB, free: 3.742 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009009/1.244, allocations: 0.7486 MB / 0.703 GB, free: 3.012 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001972/1.246, allocations: 0.9829 MB / 0.704 GB, free: 2.023 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5681/1.814, allocations: 27.19 MB / 0.7305 GB, free: 118.1 MB / 478.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1674/1.981, allocations: 94.29 MB / 0.8226 GB, free: 38.8 MB / 478.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03617/2.017, allocations: 51.94 MB / 0.8733 GB, free: 13.97 MB / 0.4983 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01277/2.03, allocations: 7.335 MB / 0.8805 GB, free: 6.625 MB / 0.4983 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0444/2.075, allocations: 20.22 MB / 0.9002 GB, free: 2.582 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001365/2.075, allocations: 108.5 kB / 0.9003 GB, free: 2.469 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=683): time 1.996e-05/2.075, allocations: 3.984 kB / 0.9003 GB, free: 2.465 MB / 0.5139 GB Notification: Performance of matching and sorting (n=691): time 0.3612/2.436, allocations: 43.04 MB / 0.9424 GB, free: 149.1 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.561e-05/2.436, allocations: 154.1 kB / 0.9425 GB, free: 149 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01034/2.446, allocations: 7.051 MB / 0.9494 GB, free: 146.5 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.001696/2.448, allocations: 137.6 kB / 0.9495 GB, free: 146.3 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.005231/2.453, allocations: 7.798 MB / 0.9571 GB, free: 140.5 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.003335/2.457, allocations: 2.345 MB / 0.9594 GB, free: 138.7 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009833/2.458, allocations: 193.2 kB / 0.9596 GB, free: 138.5 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 0.0005222/2.458, allocations: 0.6965 MB / 0.9603 GB, free: 138.1 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006798/2.465, allocations: 4.873 MB / 0.965 GB, free: 136 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008998/2.474, allocations: 8.355 MB / 0.9732 GB, free: 128.7 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01006/2.484, allocations: 6.586 MB / 0.9796 GB, free: 125 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001432/2.484, allocations: 30.31 kB / 0.9797 GB, free: 125 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.03047/2.515, allocations: 16.09 MB / 0.9954 GB, free: 108.8 MB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 9.989e-05/2.515, allocations: 60.12 kB / 0.9954 GB, free: 108.8 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001767/2.515, allocations: 115.8 kB / 0.9955 GB, free: 108.7 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005623/2.521, allocations: 2.574 MB / 0.9981 GB, free: 106.1 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008475/2.529, allocations: 2.102 MB / 1 GB, free: 104 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02846/2.558, allocations: 28.57 MB / 1.028 GB, free: 74.36 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00856/2.566, allocations: 0.5422 MB / 1.029 GB, free: 73.81 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002274/2.569, allocations: 460 kB / 1.029 GB, free: 73.36 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 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * 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 (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(18,41.7%) 100,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01477/2.584, allocations: 6.757 MB / 1.036 GB, free: 66.59 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002232/2.586, allocations: 0.764 MB / 1.036 GB, free: 65.82 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02007/2.606, allocations: 13.16 MB / 1.049 GB, free: 52.44 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01103/2.617, allocations: 8.26 MB / 1.057 GB, free: 44.08 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.61e-05/2.617, allocations: 32 kB / 1.057 GB, free: 44.05 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.533e-05/2.617, allocations: 43.81 kB / 1.057 GB, free: 44 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04778/2.665, allocations: 28.05 MB / 1.085 GB, free: 15.75 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.666e-05/2.665, allocations: 4.406 kB / 1.085 GB, free: 15.75 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004676/2.67, allocations: 1.108 MB / 1.086 GB, free: 14.64 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008878/2.679, allocations: 2.631 MB / 1.088 GB, free: 11.98 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001723/2.68, allocations: 152 kB / 1.089 GB, free: 11.83 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.272/2.952, allocations: 32.96 MB / 1.121 GB, free: 125.2 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/2.952, allocations: 8.219 kB / 1.121 GB, free: 125.2 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03007/2.983, allocations: 18.87 MB / 1.139 GB, free: 118.5 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005719/2.988, allocations: 1.77 MB / 1.141 GB, free: 117.9 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002595/2.991, allocations: 127.6 kB / 1.141 GB, free: 117.8 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004537/2.996, allocations: 408.6 kB / 1.141 GB, free: 117.7 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001535/2.997, allocations: 0.5254 MB / 1.142 GB, free: 117.6 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005162/2.998, allocations: 201.1 kB / 1.142 GB, free: 117.6 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.008289/3.006, allocations: 4.735 MB / 1.147 GB, free: 115.8 MB / 0.5139 GB Notification: Performance of sort global known variables: time 1.263e-06/3.006, allocations: 0 / 1.147 GB, free: 115.8 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.01328/3.019, allocations: 3.06 MB / 1.15 GB, free: 115.6 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 (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(18,41.7%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001455/3.021, allocations: 361.9 kB / 1.15 GB, free: 115.3 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.01818/3.039, allocations: 13.4 MB / 1.163 GB, free: 109.6 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/3.039, allocations: 3.844 kB / 1.163 GB, free: 109.6 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.0115/3.05, allocations: 7.588 MB / 1.171 GB, free: 105.7 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0119/3.062, allocations: 2.058 MB / 1.173 GB, free: 104.1 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.061/3.123, allocations: 38.46 MB / 1.21 GB, free: 68.73 MB / 0.5139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01415/3.138, allocations: 11.36 MB / 1.221 GB, free: 59.16 MB / 0.5139 GB Notification: Performance of simCode: alias equations: time 0.009288/3.147, allocations: 3.292 MB / 1.224 GB, free: 55.86 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001648/3.149, allocations: 0.558 MB / 1.225 GB, free: 55.3 MB / 0.5139 GB Notification: Performance of SimCode: time 1.172e-06/3.149, allocations: 0 / 1.225 GB, free: 55.3 MB / 0.5139 GB Notification: Performance of Templates: time 0.4585/3.607, allocations: 127.1 MB / 1.349 GB, free: 123.4 MB / 0.5295 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMS_Start.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: