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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 182.6 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.043/0.043, allocations: 8.796 MB / 25.53 MB, free: 3.746 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 222.9 MB / 251.3 MB, free: 7.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 117.2 kB / 303.6 MB, free: 14.53 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001287, allocations: 63.91 kB / 366 MB, free: 196 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2112, allocations: 51.56 MB / 417.5 MB, free: 20.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.03512/0.2463, allocations: 44.48 MB / 462 MB, free: 8.258 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02489/0.2712, allocations: 11.67 MB / 473.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009629/0.2809, allocations: 338.8 kB / 474 MB, free: 12.22 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02434/0.3053, allocations: 11.6 MB / 485.6 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01406/0.3194, allocations: 4.392 MB / 490 MB, free: 12.2 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008042/0.3275, allocations: 2.721 MB / 492.7 MB, free: 9.492 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.2125/0.54, allocations: 21.59 MB / 0.5023 GB, free: 5.098 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05108/0.5911, allocations: 34.59 MB / 0.536 GB, free: 7.492 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01863/0.6098, allocations: 9.486 MB / 0.5453 GB, free: 0 / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01843/0.6283, allocations: 11.42 MB / 0.5565 GB, free: 6.91 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.006741/0.6351, allocations: 2.008 MB / 0.5584 GB, free: 4.902 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01008/0.6452, allocations: 2.404 MB / 0.5608 GB, free: 2.547 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0085/0.6537, allocations: 5.081 MB / 0.5657 GB, free: 13.63 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01946/0.6732, allocations: 10.7 MB / 0.5762 GB, free: 3.027 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04359/0.7168, allocations: 40.39 MB / 0.6156 GB, free: 11.47 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.7168, allocations: 4 kB / 0.6156 GB, free: 11.46 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.7168, allocations: 0 / 0.6156 GB, free: 11.46 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001013/0.7179, allocations: 0 / 0.6156 GB, free: 11.46 MB / 458.7 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.06867/0.7866, allocations: 23.95 MB / 0.639 GB, free: 3.559 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.7866, allocations: 16.03 kB / 0.639 GB, free: 3.543 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05744/0.8441, allocations: 11.3 MB / 0.6501 GB, free: 8.352 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02893/0.873, allocations: 13.01 MB / 0.6628 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001403/0.8745, allocations: 1.365 MB / 0.6641 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006585/0.8811, allocations: 1.79 MB / 0.6658 GB, free: 8.691 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4011/1.282, allocations: 29.6 MB / 0.6947 GB, free: 149.2 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005424/1.283, allocations: 30.3 kB / 0.6948 GB, free: 149.2 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00363/1.286, allocations: 0.7431 MB / 0.6955 GB, free: 148.6 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006697/1.287, allocations: 0.9821 MB / 0.6965 GB, free: 148.5 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04343/1.331, allocations: 27.31 MB / 0.7231 GB, free: 135 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.121/1.452, allocations: 94.03 MB / 0.8149 GB, free: 41.62 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03267/1.484, allocations: 52.01 MB / 0.8657 GB, free: 0.7344 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3394/1.824, allocations: 7.312 MB / 0.8729 GB, free: 158 MB / 0.5106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03155/1.855, allocations: 20.2 MB / 0.8926 GB, free: 149.4 MB / 0.5106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.6e-05/1.855, allocations: 107.5 kB / 0.8927 GB, free: 149.3 MB / 0.5106 GB Notification: Performance of pre-optimization done (n=683): time 7.914e-06/1.855, allocations: 0 / 0.8927 GB, free: 149.3 MB / 0.5106 GB Notification: Performance of matching and sorting (n=691): time 0.07451/1.93, allocations: 38.8 MB / 0.9306 GB, free: 133.3 MB / 0.5106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.82e-05/1.93, allocations: 151.8 kB / 0.9307 GB, free: 133.2 MB / 0.5106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008018/1.938, allocations: 7.101 MB / 0.9377 GB, free: 128.9 MB / 0.5106 GB Notification: Performance of collectPreVariables (initialization): time 0.0009976/1.939, allocations: 140.9 kB / 0.9378 GB, free: 128.7 MB / 0.5106 GB Notification: Performance of collectInitialEqns (initialization): time 0.002947/1.942, allocations: 7.803 MB / 0.9454 GB, free: 120.9 MB / 0.5106 GB Notification: Performance of collectInitialBindings (initialization): time 0.001904/1.944, allocations: 2.346 MB / 0.9477 GB, free: 118.5 MB / 0.5106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002405/1.946, allocations: 1.878 MB / 0.9496 GB, free: 116.6 MB / 0.5106 GB Notification: Performance of setup shared object (initialization): time 4.148e-05/1.946, allocations: 301.1 kB / 0.9498 GB, free: 116.3 MB / 0.5106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005826/1.952, allocations: 4.895 MB / 0.9546 GB, free: 111.4 MB / 0.5106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007325/1.96, allocations: 8.376 MB / 0.9628 GB, free: 101.5 MB / 0.5106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0133/1.973, allocations: 14.07 MB / 0.9765 GB, free: 85.74 MB / 0.5106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.959e-05/1.973, allocations: 32 kB / 0.9766 GB, free: 85.71 MB / 0.5106 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.02225/1.995, allocations: 16.16 MB / 0.9924 GB, free: 69.39 MB / 0.5106 GB Notification: Performance of prepare postOptimizeDAE: time 6.217e-05/1.995, allocations: 52 kB / 0.9924 GB, free: 69.34 MB / 0.5106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001093/1.996, allocations: 112 kB / 0.9925 GB, free: 69.23 MB / 0.5106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00545/2.001, allocations: 2.567 MB / 0.995 GB, free: 66.64 MB / 0.5106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007015/2.008, allocations: 2.106 MB / 0.9971 GB, free: 64.53 MB / 0.5106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02567/2.034, allocations: 28.53 MB / 1.025 GB, free: 34.94 MB / 0.5106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006611/2.04, allocations: 0.5229 MB / 1.025 GB, free: 34.42 MB / 0.5106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001399/2.042, allocations: 459.9 kB / 1.026 GB, free: 33.97 MB / 0.5106 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.008929/2.051, allocations: 6.769 MB / 1.032 GB, free: 27.18 MB / 0.5106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001475/2.052, allocations: 0.7678 MB / 1.033 GB, free: 26.41 MB / 0.5106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01891/2.071, allocations: 13.16 MB / 1.046 GB, free: 13.03 MB / 0.5106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2147/2.286, allocations: 8.297 MB / 1.054 GB, free: 140.1 MB / 0.5106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001016/2.286, allocations: 30.81 kB / 1.054 GB, free: 140.1 MB / 0.5106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001759/2.286, allocations: 36.86 kB / 1.054 GB, free: 140.1 MB / 0.5106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0453/2.331, allocations: 28.09 MB / 1.082 GB, free: 131.7 MB / 0.5106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.44e-05/2.332, allocations: 7.641 kB / 1.082 GB, free: 131.7 MB / 0.5106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004382/2.336, allocations: 1.116 MB / 1.083 GB, free: 131.6 MB / 0.5106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005789/2.342, allocations: 2.624 MB / 1.085 GB, free: 130.9 MB / 0.5106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007808/2.343, allocations: 148.5 kB / 1.085 GB, free: 130.8 MB / 0.5106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02824/2.371, allocations: 33 MB / 1.118 GB, free: 107.7 MB / 0.5106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/2.371, allocations: 2.594 kB / 1.118 GB, free: 107.7 MB / 0.5106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1195/2.49, allocations: 94.02 MB / 1.21 GB, free: 28.66 MB / 0.5106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004966/2.495, allocations: 1.763 MB / 1.211 GB, free: 26.88 MB / 0.5106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001857/2.497, allocations: 124 kB / 1.211 GB, free: 26.76 MB / 0.5106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004264/2.502, allocations: 395.7 kB / 1.212 GB, free: 26.37 MB / 0.5106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001381/2.503, allocations: 0.5297 MB / 1.212 GB, free: 25.84 MB / 0.5106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004362/2.503, allocations: 196 kB / 1.212 GB, free: 25.65 MB / 0.5106 GB Notification: Performance of sorting global known variables: time 0.00699/2.51, allocations: 4.786 MB / 1.217 GB, free: 20.89 MB / 0.5106 GB Notification: Performance of sort global known variables: time 2.31e-07/2.51, allocations: 0 / 1.217 GB, free: 20.89 MB / 0.5106 GB Notification: Performance of remove unused functions: time 0.01362/2.524, allocations: 3.822 MB / 1.221 GB, free: 17.07 MB / 0.5106 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.001493/2.526, allocations: 368.3 kB / 1.221 GB, free: 16.72 MB / 0.5106 GB Notification: Performance of simCode: created initialization part: time 0.01789/2.543, allocations: 13.43 MB / 1.234 GB, free: 3.117 MB / 0.5106 GB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/2.543, allocations: 4.25 kB / 1.234 GB, free: 3.113 MB / 0.5106 GB Notification: Performance of simCode: created simulation system equations: time 0.0117/2.555, allocations: 7.591 MB / 1.242 GB, free: 11.37 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01105/2.566, allocations: 2.02 MB / 1.244 GB, free: 9.383 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2682/2.835, allocations: 46.81 MB / 1.289 GB, free: 129.7 MB / 0.5263 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01774/2.852, allocations: 11.58 MB / 1.301 GB, free: 128.4 MB / 0.5263 GB Notification: Performance of simCode: alias equations: time 0.01001/2.862, allocations: 3.307 MB / 1.304 GB, free: 128.1 MB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002169/2.865, allocations: 0.5668 MB / 1.305 GB, free: 128 MB / 0.5263 GB Notification: Performance of SimCode: time 8.22e-07/2.865, allocations: 0 / 1.305 GB, free: 128 MB / 0.5263 GB Notification: Performance of Templates: time 0.4141/3.279, allocations: 154.5 MB / 1.455 GB, free: 159.2 MB / 0.5419 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)