Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aims.i_0_r|aims.ir.1.|aims.ir.2.|aims.idq_rr.1.|aims.idq_rr.2.|aims.is.1.|aims.is.2.|aims.idq_sr.1.|aims.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aims.i_0_r|aims.ir.1.|aims.ir.2.|aims.idq_rr.1.|aims.idq_rr.2.|aims.is.1.|aims.is.2.|aims.idq_sr.1.|aims.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, allocations: 118.2 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001578/0.001578, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.001321, allocations: 59.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2895, allocations: 50.55 MB / 409.3 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01276/0.3023, allocations: 11.86 MB / 421.1 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006722/0.3091, allocations: 3.822 MB / 424.9 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001656/0.3108, allocations: 75.62 kB / 425 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002306/0.3131, allocations: 0.9172 MB / 425.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003095/0.3162, allocations: 1.142 MB / 427.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.3175, allocations: 0.4992 MB / 427.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004537/0.3221, allocations: 4.234 MB / 431.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004126/0.3262, allocations: 3.297 MB / 435.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002976/0.3292, allocations: 1.924 MB / 437 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003188/0.3324, allocations: 2.335 MB / 439.4 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007092/0.3331, allocations: 0.4922 MB / 439.9 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001025/0.3341, allocations: 0.5975 MB / 440.5 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001334/0.3355, allocations: 1.391 MB / 441.8 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002474/0.338, allocations: 2.213 MB / 444.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006267/0.3443, allocations: 6.567 MB / 450.6 MB, free: 7.992 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.3443, allocations: 3.984 kB / 450.6 MB, free: 7.988 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3443, allocations: 0 / 450.6 MB, free: 7.988 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001149/0.3444, allocations: 4 kB / 450.6 MB, free: 7.984 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.008476/0.3529, allocations: 4.322 MB / 455 MB, free: 3.594 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.3529, allocations: 8.031 kB / 455 MB, free: 3.586 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001339/0.3543, allocations: 472 kB / 455.4 MB, free: 3.121 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003889/0.3582, allocations: 2.418 MB / 457.8 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/0.3584, allocations: 230.2 kB / 458.1 MB, free: 436 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004662/0.3589, allocations: 304 kB / 458.4 MB, free: 132 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006967/0.3658, allocations: 4.377 MB / 462.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.561e-05/0.3659, allocations: 3.906 kB / 462.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002724/0.3662, allocations: 128 kB / 462.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001254/0.3663, allocations: 134 kB / 463 MB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006278/0.3726, allocations: 3.779 MB / 466.8 MB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02076/0.3934, allocations: 13.37 MB / 480.1 MB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003576/0.397, allocations: 2.899 MB / 483 MB, free: 6.824 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002877/0.3999, allocations: 1.68 MB / 484.7 MB, free: 5.148 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002829/0.4002, allocations: 134.3 kB / 484.9 MB, free: 5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.087e-05/0.4003, allocations: 47.88 kB / 484.9 MB, free: 4.945 MB / 398.1 MB Notification: Performance of pre-optimization done (n=164): time 3.888e-06/0.4003, allocations: 0 / 484.9 MB, free: 4.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=180): time 0.01777/0.4181, allocations: 8.996 MB / 493.9 MB, free: 11.76 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/0.4181, allocations: 77.41 kB / 494 MB, free: 11.67 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003365/0.4215, allocations: 2.366 MB / 496.3 MB, free: 9.273 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001601/0.4217, allocations: 57.7 kB / 496.4 MB, free: 9.211 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001017/0.4227, allocations: 1.474 MB / 497.9 MB, free: 7.719 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005335/0.4233, allocations: 0.6045 MB / 498.5 MB, free: 7.105 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005899/0.4239, allocations: 363.3 kB / 498.8 MB, free: 6.746 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.424, allocations: 309.1 kB / 499.1 MB, free: 6.441 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001769/0.4257, allocations: 1.12 MB / 0.4885 GB, free: 5.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002038/0.4278, allocations: 1.575 MB / 0.4901 GB, free: 3.562 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0038/0.4316, allocations: 2.784 MB / 0.4928 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.328e-06/0.4317, allocations: 4 kB / 0.4928 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006369/0.438, allocations: 3.592 MB / 0.4963 GB, free: 12.98 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.06e-05/0.4381, allocations: 18.75 kB / 0.4963 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.339e-05/0.4381, allocations: 12 kB / 0.4963 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002015/0.4401, allocations: 0.8025 MB / 0.4971 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/0.4419, allocations: 459.3 kB / 0.4975 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0107/0.4526, allocations: 11.17 MB / 0.5085 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001951/0.4546, allocations: 123.8 kB / 0.5086 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001886/0.4548, allocations: 79.98 kB / 0.5087 GB, free: 15.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 6 (switchedRheostat.booleanStep[3].y,switchedRheostat.booleanStep[2].y,switchedRheostat.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 (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(2,14,100.0%), (1,1,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.001896/0.4567, allocations: 1.098 MB / 0.5097 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005158/0.4572, allocations: 248.9 kB / 0.51 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005487/0.4627, allocations: 3.301 MB / 0.5132 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.4628, allocations: 16 kB / 0.5132 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.4628, allocations: 8 kB / 0.5132 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.036e-05/0.4628, allocations: 11.95 kB / 0.5132 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0124/0.4752, allocations: 6.856 MB / 0.5199 GB, free: 3.895 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/0.4752, allocations: 4 kB / 0.5199 GB, free: 3.891 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/0.4766, allocations: 295.5 kB / 0.5202 GB, free: 3.602 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002454/0.479, allocations: 0.9277 MB / 0.5211 GB, free: 2.648 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001953/0.4792, allocations: 43.92 kB / 0.5212 GB, free: 2.605 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01471/0.494, allocations: 14.61 MB / 0.5354 GB, free: 3.02 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.494, allocations: 4 kB / 0.5354 GB, free: 3.016 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2531/0.7471, allocations: 4.856 MB / 0.5402 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001441/0.7485, allocations: 0.5661 MB / 0.5407 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003328/0.7489, allocations: 38.61 kB / 0.5408 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.7502, allocations: 120 kB / 0.5409 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004056/0.7506, allocations: 155.2 kB / 0.541 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.7507, allocations: 47.73 kB / 0.5411 GB, free: 121.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002278/0.753, allocations: 1.644 MB / 0.5427 GB, free: 121.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.753, allocations: 0 / 0.5427 GB, free: 121.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002011/0.755, allocations: 0.7056 MB / 0.5434 GB, free: 121.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.inertiaRotor.w,aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 7 * 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): 7 systems {(2,14,100.0%), (1,1,100.0%), (2,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004206/0.7554, allocations: 209.3 kB / 0.5436 GB, free: 121.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004337/0.7598, allocations: 3.598 MB / 0.5471 GB, free: 119.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.7598, allocations: 0 / 0.5471 GB, free: 119.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002813/0.7626, allocations: 2.508 MB / 0.5495 GB, free: 118 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002811/0.7655, allocations: 0.7294 MB / 0.5502 GB, free: 117.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008868/0.7743, allocations: 6.746 MB / 0.5568 GB, free: 114.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001722/0.7761, allocations: 2.527 MB / 0.5593 GB, free: 112.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001589/0.7777, allocations: 0.5827 MB / 0.5599 GB, free: 112.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004358/0.7781, allocations: 157.4 kB / 0.56 GB, free: 112.1 MB / 462.1 MB Notification: Performance of SimCode: time 6.91e-07/0.7781, allocations: 7.938 kB / 0.56 GB, free: 112.1 MB / 462.1 MB Notification: Performance of Templates: time 0.0575/0.8356, allocations: 40.7 MB / 0.5998 GB, free: 72.24 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMS_Start/IMS_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches