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.001204/0.001204, allocations: 176.2 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05203/0.05203, allocations: 8.712 MB / 16.79 MB, free: 3.375 MB / 13.93 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: 221.5 MB / 240.9 MB, free: 13.19 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.0009343/0.0009345, allocations: 93.75 kB / 293.9 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.407e-05/1.411e-05, allocations: 0 / 352.6 MB, free: 1.242 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1156, allocations: 52.54 MB / 405.2 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5064/0.6221, allocations: 159.3 MB / 0.5512 GB, free: 8.59 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.6224, allocations: 75.97 kB / 0.5513 GB, free: 8.516 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.502/3.124, allocations: 0.5664 GB / 1.118 GB, free: 40.92 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.645e-06/3.124, allocations: 0 / 1.118 GB, free: 40.92 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.002877/3.127, allocations: 425.5 kB / 1.118 GB, free: 40.88 MB / 0.4948 GB 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.07924/3.207, allocations: 16.89 MB / 1.135 GB, free: 35.86 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.13e-05/3.207, allocations: 10.12 kB / 1.135 GB, free: 35.86 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05177/3.258, allocations: 7.82 MB / 1.142 GB, free: 34.84 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0585/3.317, allocations: 14.83 MB / 1.157 GB, free: 33.11 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002159/3.319, allocations: 0.572 MB / 1.157 GB, free: 33.11 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01085/3.33, allocations: 1.017 MB / 1.158 GB, free: 33.1 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06014/3.39, allocations: 22.77 MB / 1.18 GB, free: 33.02 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09602/3.486, allocations: 26.03 MB / 1.206 GB, free: 30.87 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001301/3.488, allocations: 26.19 kB / 1.206 GB, free: 30.86 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008953/3.497, allocations: 13.03 kB / 1.206 GB, free: 30.86 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00185/3.499, allocations: 1.267 MB / 1.207 GB, free: 30.82 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.582/4.081, allocations: 92.47 MB / 1.297 GB, free: 67.22 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03678/4.117, allocations: 51.12 MB / 1.347 GB, free: 26.98 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01331/4.131, allocations: 7.282 MB / 1.355 GB, free: 26.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04043/4.171, allocations: 19.63 MB / 1.374 GB, free: 26.06 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.42e-05/4.171, allocations: 111.2 kB / 1.374 GB, free: 26.02 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=685): time 8.446e-06/4.171, allocations: 3 kB / 1.374 GB, free: 26.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=693): time 0.06579/4.237, allocations: 29.7 MB / 1.403 GB, free: 20.82 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.406e-05/4.237, allocations: 151.2 kB / 1.403 GB, free: 20.71 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01276/4.25, allocations: 5.301 MB / 1.408 GB, free: 20.23 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0017/4.252, allocations: 25.7 kB / 1.408 GB, free: 20.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004959/4.257, allocations: 7.735 MB / 1.416 GB, free: 16.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003102/4.26, allocations: 2.251 MB / 1.418 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007499/4.261, allocations: 7.531 kB / 1.418 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004856/4.261, allocations: 0.6833 MB / 1.419 GB, free: 14.29 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005948/4.267, allocations: 4.817 MB / 1.423 GB, free: 14.27 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008085/4.275, allocations: 8.021 MB / 1.431 GB, free: 8.27 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01381/4.289, allocations: 7.84 MB / 1.439 GB, free: 5.512 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000201/4.289, allocations: 31.84 kB / 1.439 GB, free: 5.512 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.03907/4.328, allocations: 16.43 MB / 1.455 GB, free: 15.97 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000244/4.329, allocations: 52.78 kB / 1.455 GB, free: 15.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003169/4.329, allocations: 104.8 kB / 1.455 GB, free: 15.97 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006672/4.336, allocations: 2.38 MB / 1.457 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009615/4.345, allocations: 2.111 MB / 1.459 GB, free: 15.26 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03543/4.381, allocations: 27.25 MB / 1.486 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01015/4.391, allocations: 430.1 kB / 1.486 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003241/4.394, allocations: 443.6 kB / 1.487 GB, free: 12.23 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1064): * Single equations (assignments): 1051 * 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%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(18,41.7%) 100} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005284/4.4, allocations: 403.7 kB / 1.487 GB, free: 11.98 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003802/4.404, allocations: 0.7176 MB / 1.488 GB, free: 11.25 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4241/4.828, allocations: 14.07 MB / 1.502 GB, free: 85.5 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01745/4.845, allocations: 9.432 MB / 1.511 GB, free: 85.26 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.993e-05/4.845, allocations: 31.86 kB / 1.511 GB, free: 85.25 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001376/4.845, allocations: 37.03 kB / 1.511 GB, free: 85.25 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05144/4.897, allocations: 27.1 MB / 1.537 GB, free: 83.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-05/4.897, allocations: 12.03 kB / 1.537 GB, free: 83.74 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006002/4.903, allocations: 1.17 MB / 1.539 GB, free: 83.74 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006862/4.91, allocations: 2.439 MB / 1.541 GB, free: 83.65 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001302/4.911, allocations: 58.02 kB / 1.541 GB, free: 83.65 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03149/4.943, allocations: 31.57 MB / 1.572 GB, free: 70.07 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.846e-06/4.943, allocations: 6.531 kB / 1.572 GB, free: 70.07 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03271/4.975, allocations: 20.72 MB / 1.592 GB, free: 68.18 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006023/4.982, allocations: 1.781 MB / 1.594 GB, free: 68.08 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002752/4.984, allocations: 9.594 kB / 1.594 GB, free: 68.08 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006175/4.991, allocations: 380.3 kB / 1.594 GB, free: 68.08 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001866/4.992, allocations: 0.5399 MB / 1.595 GB, free: 68.07 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006179/4.993, allocations: 198 kB / 1.595 GB, free: 68.07 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.008325/5.001, allocations: 3.903 MB / 1.599 GB, free: 67.86 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.12e-07/5.001, allocations: 0 / 1.599 GB, free: 67.86 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01518/5.017, allocations: 2.756 MB / 1.601 GB, free: 67.86 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi) * 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,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (565): * Single equations (assignments): 550 * 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,(18,41.7%) 100,(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002213/5.019, allocations: 0.5715 MB / 1.602 GB, free: 67.73 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0183/5.037, allocations: 13.04 MB / 1.615 GB, free: 63.31 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/5.037, allocations: 3.938 kB / 1.615 GB, free: 63.31 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01134/5.049, allocations: 7.447 MB / 1.622 GB, free: 59.69 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01164/5.06, allocations: 1.577 MB / 1.624 GB, free: 59.35 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06778/5.128, allocations: 27.25 MB / 1.65 GB, free: 48.99 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02373/5.152, allocations: 11.65 MB / 1.661 GB, free: 41.59 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01373/5.166, allocations: 3.237 MB / 1.665 GB, free: 39.47 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003398/5.169, allocations: 0.5323 MB / 1.665 GB, free: 38.96 MB / 0.5573 GB Notification: Performance of SimCode: time 1.243e-06/5.169, allocations: 0 / 1.665 GB, free: 38.96 MB / 0.5573 GB Notification: Performance of Templates: time 1.045/6.214, allocations: 115.6 MB / 1.778 GB, free: 71.5 MB / 0.5574 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)