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.001493/0.001493, allocations: 112.6 kB / 17.7 MB, free: 5.387 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.001631/0.001631, allocations: 182.9 kB / 18.63 MB, free: 4.461 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.402/1.402, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 46.75 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1249, allocations: 49.46 MB / 351.5 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01225/0.1372, allocations: 10.27 MB / 361.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006604/0.1438, allocations: 3.213 MB / 365 MB, free: 6.121 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001955/0.1458, allocations: 55.75 kB / 365.1 MB, free: 6.066 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002024/0.1479, allocations: 0.6947 MB / 365.8 MB, free: 5.367 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002847/0.1508, allocations: 0.8737 MB / 366.6 MB, free: 4.488 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009374/0.1517, allocations: 411.4 kB / 367 MB, free: 4.086 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003682/0.1554, allocations: 3.395 MB / 370.4 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1917/0.3471, allocations: 2.607 MB / 373 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002678/0.3498, allocations: 1.514 MB / 374.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003604/0.3535, allocations: 1.854 MB / 376.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008123/0.3543, allocations: 396.4 kB / 376.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001303/0.3556, allocations: 489.5 kB / 377.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001266/0.3569, allocations: 1.105 MB / 378.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002302/0.3592, allocations: 1.777 MB / 380.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005972/0.3652, allocations: 5.204 MB / 385.4 MB, free: 8.844 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.3652, allocations: 3.719 kB / 385.4 MB, free: 8.844 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3652, allocations: 0 / 385.4 MB, free: 8.844 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001581/0.3654, allocations: 0 / 385.4 MB, free: 8.844 MB / 302.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.008338/0.3737, allocations: 3.519 MB / 388.9 MB, free: 6.781 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.3738, allocations: 9.219 kB / 388.9 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001108/0.3749, allocations: 357.3 kB / 389.2 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003672/0.3786, allocations: 1.917 MB / 391.1 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.3787, allocations: 193.8 kB / 391.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004131/0.3792, allocations: 255.9 kB / 391.6 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005582/0.3848, allocations: 3.541 MB / 395.1 MB, free: 3.051 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-05/0.3848, allocations: 13.95 kB / 395.1 MB, free: 3.043 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002224/0.3851, allocations: 101.3 kB / 395.2 MB, free: 2.965 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.698e-05/0.3852, allocations: 111 kB / 395.3 MB, free: 2.949 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004992/0.3902, allocations: 3.101 MB / 398.5 MB, free: 1.348 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0179/0.4081, allocations: 10.74 MB / 409.2 MB, free: 7.395 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003603/0.4117, allocations: 3.074 MB / 412.3 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002111/0.4138, allocations: 1.382 MB / 413.6 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002884/0.4141, allocations: 128.6 kB / 413.8 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001781/0.4159, allocations: 1.151 MB / 414.9 MB, free: 1.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 4.359e-06/0.416, allocations: 2.625 kB / 414.9 MB, free: 1.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.0224/0.4384, allocations: 8.869 MB / 423.8 MB, free: 8.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/0.4385, allocations: 180.2 kB / 424 MB, free: 8.215 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003896/0.4424, allocations: 1.835 MB / 425.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001641/0.4426, allocations: 57.64 kB / 425.9 MB, free: 6.316 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001376/0.444, allocations: 1.194 MB / 427.1 MB, free: 5.117 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005963/0.4446, allocations: 0.5501 MB / 427.6 MB, free: 4.574 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007103/0.4453, allocations: 359.3 kB / 428 MB, free: 4.219 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.4455, allocations: 309.1 kB / 428.3 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00179/0.4473, allocations: 0.9955 MB / 429.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002082/0.4494, allocations: 1.437 MB / 430.7 MB, free: 1.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00366/0.453, allocations: 2.444 MB / 433.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/0.4531, allocations: 4 kB / 433.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006053/0.4591, allocations: 3.327 MB / 436.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.4592, allocations: 12 kB / 436.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.493e-05/0.4592, allocations: 14.5 kB / 436.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/0.4613, allocations: 0.8829 MB / 437.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001344/0.4627, allocations: 337 kB / 437.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01377/0.4765, allocations: 10.44 MB / 448.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002437/0.479, allocations: 139.8 kB / 448.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003945/0.4794, allocations: 64 kB / 448.3 MB, free: 15.27 MB / 366.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.002445/0.4819, allocations: 0.9193 MB / 449.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007121/0.4826, allocations: 201.6 kB / 449.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005842/0.4884, allocations: 3.114 MB / 452.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/0.4885, allocations: 16 kB / 452.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-05/0.4885, allocations: 8 kB / 452.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.731e-05/0.4885, allocations: 7.969 kB / 452.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01248/0.501, allocations: 6.223 MB / 458.8 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.501, allocations: 0 / 458.8 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009238/0.502, allocations: 213 kB / 459 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0023/0.5043, allocations: 0.9279 MB / 460 MB, free: 3.625 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001423/0.5045, allocations: 43.97 kB / 460 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01301/0.5175, allocations: 12.01 MB / 472 MB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/0.5175, allocations: 6.75 kB / 472 MB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00755/0.5251, allocations: 4.507 MB / 476.5 MB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001665/0.5268, allocations: 0.4907 MB / 477 MB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007093/0.5275, allocations: 39.98 kB / 477.1 MB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/0.5289, allocations: 99.89 kB / 477.2 MB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000515/0.5295, allocations: 199.6 kB / 477.4 MB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/0.5296, allocations: 47.98 kB / 477.4 MB, free: 1.629 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0025/0.5321, allocations: 1.255 MB / 478.7 MB, free: 392 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5321, allocations: 0 / 478.7 MB, free: 392 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.003086/0.5352, allocations: 0.6367 MB / 479.3 MB, free: 15.75 MB / 398.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.0005198/0.5358, allocations: 222.4 kB / 479.5 MB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005466/0.5412, allocations: 3.252 MB / 482.8 MB, free: 12.24 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/0.5413, allocations: 4 kB / 482.8 MB, free: 12.24 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003516/0.5448, allocations: 2.244 MB / 485 MB, free: 9.949 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003723/0.5485, allocations: 0.5664 MB / 485.6 MB, free: 9.395 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/0.5596, allocations: 5.687 MB / 491.3 MB, free: 3.668 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002822/0.5624, allocations: 2.192 MB / 493.4 MB, free: 1.441 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001771/0.5642, allocations: 457.5 kB / 493.9 MB, free: 0.9922 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006908/0.5649, allocations: 131.4 kB / 494 MB, free: 0.8633 MB / 398.1 MB Notification: Performance of SimCode: time 3.346e-06/0.565, allocations: 0 / 494 MB, free: 0.8633 MB / 398.1 MB Notification: Performance of Templates: time 0.07612/0.6411, allocations: 37.54 MB / 0.5191 GB, free: 11.84 MB / 446.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_YD/IMC_YD.csv","/var/lib/jenkins1/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