Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.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/Complex 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) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 107.6 kB / 17.06 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 192 kB / 18 MB, free: 4.977 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.48/1.48, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 47.92 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3489, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01168/0.3606, allocations: 10.3 MB / 411 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006983/0.3676, allocations: 3.197 MB / 414.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001835/0.3695, allocations: 59.75 kB / 414.3 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00207/0.3717, allocations: 0.6986 MB / 415 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003594/0.3753, allocations: 0.8776 MB / 415.9 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.3764, allocations: 407.5 kB / 416.3 MB, free: 9.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004823/0.3813, allocations: 3.397 MB / 419.7 MB, free: 5.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002991/0.3843, allocations: 2.607 MB / 422.3 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00264/0.387, allocations: 1.519 MB / 423.8 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002872/0.3898, allocations: 1.856 MB / 425.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006966/0.3906, allocations: 396 kB / 426 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001092/0.3917, allocations: 487.8 kB / 426.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001045/0.3927, allocations: 1.106 MB / 427.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002081/0.3948, allocations: 1.773 MB / 429.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00542/0.4002, allocations: 5.203 MB / 434.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4003, allocations: 0 / 434.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.4003, allocations: 4 kB / 434.6 MB, free: 6.832 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001436/0.4004, allocations: 4 kB / 434.6 MB, free: 6.828 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.008639/0.4091, allocations: 3.52 MB / 438.1 MB, free: 3.238 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.098e-05/0.4092, allocations: 8.031 kB / 438.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009411/0.4101, allocations: 357 kB / 438.5 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003317/0.4134, allocations: 1.918 MB / 440.4 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.4136, allocations: 201.2 kB / 440.6 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004268/0.4141, allocations: 259.9 kB / 440.8 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006436/0.4205, allocations: 3.531 MB / 444.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.808e-05/0.4206, allocations: 15.84 kB / 444.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002458/0.4209, allocations: 104 kB / 444.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001177/0.421, allocations: 116.9 kB / 444.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005643/0.4266, allocations: 3.095 MB / 447.7 MB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01814/0.4448, allocations: 10.73 MB / 458.4 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003664/0.4485, allocations: 3.078 MB / 461.5 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002231/0.4508, allocations: 1.388 MB / 462.9 MB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002801/0.4511, allocations: 122.4 kB / 463 MB, free: 9.652 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00186/0.453, allocations: 1.164 MB / 464.2 MB, free: 8.457 MB / 382.1 MB Notification: Performance of pre-optimization done (n=156): time 3.797e-06/0.453, allocations: 0 / 464.2 MB, free: 8.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=172): time 0.02151/0.4745, allocations: 8.863 MB / 473 MB, free: 15.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.4747, allocations: 180.2 kB / 473.2 MB, free: 15.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002938/0.4776, allocations: 1.835 MB / 475 MB, free: 13.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002244/0.4778, allocations: 61.64 kB / 475.1 MB, free: 13.31 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.479, allocations: 1.188 MB / 476.3 MB, free: 12.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005965/0.4796, allocations: 0.5662 MB / 476.9 MB, free: 11.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006267/0.4803, allocations: 355.3 kB / 477.2 MB, free: 11.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.4804, allocations: 301.1 kB / 477.5 MB, free: 10.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001568/0.482, allocations: 0.9994 MB / 478.5 MB, free: 9.887 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001962/0.4839, allocations: 1.43 MB / 479.9 MB, free: 8.301 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003467/0.4874, allocations: 2.454 MB / 482.4 MB, free: 5.699 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.4874, allocations: 4 kB / 482.4 MB, free: 5.695 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005884/0.4933, allocations: 3.326 MB / 485.7 MB, free: 2.344 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.411e-05/0.4934, allocations: 8.531 kB / 485.7 MB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.473e-05/0.4934, allocations: 12 kB / 485.7 MB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002088/0.4955, allocations: 0.8893 MB / 486.6 MB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.4969, allocations: 339.4 kB / 487 MB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0128/0.5097, allocations: 10.43 MB / 497.4 MB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002381/0.5121, allocations: 131.8 kB / 497.5 MB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001701/0.5123, allocations: 71.98 kB / 497.6 MB, free: 6.047 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 24 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,switchYD.logicalDelay[3].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.idealOpener.control[3],switchYD.idealOpener.control[2],switchYD.idealOpener.control[1],switchYD.idealCloser.control[3],switchYD.idealCloser.control[2],switchYD.idealCloser.control[1],idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 180 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(2,12,100.0%), (9,25,33.3%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002054/0.5144, allocations: 0.9292 MB / 498.5 MB, free: 5.105 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005534/0.5149, allocations: 201.5 kB / 498.7 MB, free: 4.906 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005659/0.5206, allocations: 3.107 MB / 0.4901 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.251e-05/0.5207, allocations: 20 kB / 0.4901 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.77e-05/0.5207, allocations: 8 kB / 0.4901 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-05/0.5207, allocations: 7.969 kB / 0.4901 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01288/0.5336, allocations: 6.217 MB / 0.4962 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/0.5337, allocations: 0 / 0.4962 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009469/0.5347, allocations: 211.7 kB / 0.4964 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002394/0.5371, allocations: 0.9331 MB / 0.4973 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/0.5372, allocations: 44.11 kB / 0.4973 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01337/0.5506, allocations: 12.02 MB / 0.5091 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.5506, allocations: 0 / 0.5091 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007345/0.558, allocations: 4.507 MB / 0.5135 GB, free: 9.051 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001293/0.5593, allocations: 0.4907 MB / 0.5139 GB, free: 8.539 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002826/0.5596, allocations: 32 kB / 0.514 GB, free: 8.508 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.5606, allocations: 107.9 kB / 0.5141 GB, free: 8.402 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005915/0.5612, allocations: 192.9 kB / 0.5143 GB, free: 8.215 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.5613, allocations: 47.98 kB / 0.5143 GB, free: 8.168 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002063/0.5634, allocations: 1.258 MB / 0.5155 GB, free: 6.918 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5634, allocations: 4 kB / 0.5155 GB, free: 6.914 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002224/0.5657, allocations: 0.6367 MB / 0.5162 GB, free: 6.277 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(2,12,100.0%), (1,1,100.0%), (9,25,33.3%), (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.0004698/0.5661, allocations: 221.1 kB / 0.5164 GB, free: 6.055 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005147/0.5713, allocations: 3.258 MB / 0.5195 GB, free: 2.711 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5713, allocations: 0 / 0.5195 GB, free: 2.711 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003242/0.5746, allocations: 2.234 MB / 0.5217 GB, free: 412 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002625/0.5772, allocations: 0.5831 MB / 0.5223 GB, free: 15.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008777/0.586, allocations: 5.684 MB / 0.5278 GB, free: 10.09 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001828/0.5878, allocations: 2.18 MB / 0.53 GB, free: 7.871 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001335/0.5892, allocations: 457.5 kB / 0.5304 GB, free: 7.422 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003835/0.5896, allocations: 131.4 kB / 0.5305 GB, free: 7.293 MB / 462.1 MB Notification: Performance of SimCode: time 2.936e-06/0.5896, allocations: 3.938 kB / 0.5305 GB, free: 7.289 MB / 462.1 MB Notification: Performance of Templates: time 0.28/0.8696, allocations: 38.12 MB / 0.5678 GB, free: 109.8 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_YD/IMC_YD.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches