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.001072/0.001072, allocations: 109.4 kB / 17.06 MB, free: 6.137 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.001228/0.001228, allocations: 192 kB / 18 MB, free: 5.219 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.431/1.431, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 51.92 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3076, allocations: 49.44 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01193/0.3196, allocations: 10.29 MB / 411 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007294/0.3269, allocations: 3.205 MB / 414.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001259/0.3282, allocations: 55.75 kB / 414.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001806/0.3301, allocations: 0.7299 MB / 415 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002422/0.3326, allocations: 0.9128 MB / 415.9 MB, free: 9.602 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008407/0.3334, allocations: 411.4 kB / 416.3 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003599/0.337, allocations: 3.405 MB / 419.7 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002994/0.34, allocations: 2.595 MB / 422.3 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002547/0.3426, allocations: 1.522 MB / 423.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00266/0.3453, allocations: 1.845 MB / 425.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007094/0.346, allocations: 404 kB / 426.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001081/0.3471, allocations: 495.8 kB / 426.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001242/0.3483, allocations: 1.103 MB / 427.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002393/0.3507, allocations: 1.781 MB / 429.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006062/0.3568, allocations: 5.195 MB / 434.7 MB, free: 6.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.3568, allocations: 0 / 434.7 MB, free: 6.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3569, allocations: 4 kB / 434.7 MB, free: 6.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.807e-05/0.3569, allocations: 0 / 434.7 MB, free: 6.754 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.007844/0.3648, allocations: 3.531 MB / 438.2 MB, free: 3.152 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.3648, allocations: 8.031 kB / 438.2 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00101/0.3659, allocations: 353 kB / 438.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003239/0.3691, allocations: 1.914 MB / 440.5 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001658/0.3693, allocations: 201.2 kB / 440.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003825/0.3697, allocations: 263.9 kB / 440.9 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005859/0.3756, allocations: 3.527 MB / 444.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.564e-05/0.3756, allocations: 15.83 kB / 444.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002318/0.3759, allocations: 104 kB / 444.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001187/0.376, allocations: 108.9 kB / 444.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005155/0.3812, allocations: 3.095 MB / 447.8 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0196/0.4008, allocations: 10.74 MB / 458.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003803/0.4046, allocations: 3.082 MB / 461.6 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002403/0.4071, allocations: 1.384 MB / 463 MB, free: 9.707 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002939/0.4074, allocations: 130.4 kB / 463.1 MB, free: 9.562 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001919/0.4093, allocations: 1.148 MB / 464.2 MB, free: 8.383 MB / 382.1 MB Notification: Performance of pre-optimization done (n=156): time 5.381e-06/0.4094, allocations: 0 / 464.2 MB, free: 8.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=172): time 0.01978/0.4292, allocations: 8.875 MB / 473.1 MB, free: 15.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.4293, allocations: 172.2 kB / 473.3 MB, free: 15.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002683/0.432, allocations: 1.843 MB / 475.1 MB, free: 13.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001385/0.4321, allocations: 53.7 kB / 475.2 MB, free: 13.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001109/0.4333, allocations: 1.192 MB / 476.4 MB, free: 12.03 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004702/0.4337, allocations: 0.5585 MB / 476.9 MB, free: 11.46 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005723/0.4343, allocations: 355.3 kB / 477.3 MB, free: 11.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.4344, allocations: 305.1 kB / 477.6 MB, free: 10.81 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001514/0.436, allocations: 1.003 MB / 478.6 MB, free: 9.805 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001804/0.4378, allocations: 1.434 MB / 480 MB, free: 8.215 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003227/0.441, allocations: 2.45 MB / 482.5 MB, free: 5.617 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.441, allocations: 4 kB / 482.5 MB, free: 5.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005435/0.4465, allocations: 3.326 MB / 485.8 MB, free: 2.262 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.4465, allocations: 16.09 kB / 485.8 MB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/0.4466, allocations: 12 kB / 485.8 MB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002021/0.4486, allocations: 0.8853 MB / 486.7 MB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/0.4498, allocations: 335.5 kB / 487 MB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01121/0.461, allocations: 10.43 MB / 497.5 MB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/0.463, allocations: 135.8 kB / 497.6 MB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/0.4632, allocations: 67.98 kB / 497.7 MB, free: 5.957 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.001912/0.4651, allocations: 0.9215 MB / 498.6 MB, free: 5.023 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004327/0.4656, allocations: 205.5 kB / 498.8 MB, free: 4.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005041/0.4706, allocations: 3.103 MB / 0.4901 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.4706, allocations: 16 kB / 0.4901 GB, free: 1.668 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.4706, allocations: 8 kB / 0.4902 GB, free: 1.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/0.4707, allocations: 11.97 kB / 0.4902 GB, free: 1.648 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01008/0.4808, allocations: 6.213 MB / 0.4962 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/0.4808, allocations: 7.922 kB / 0.4962 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008739/0.4817, allocations: 211.7 kB / 0.4964 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002172/0.4839, allocations: 0.9293 MB / 0.4973 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/0.484, allocations: 43.92 kB / 0.4974 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01257/0.4966, allocations: 12.01 MB / 0.5091 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/0.4966, allocations: 4.031 kB / 0.5091 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007003/0.5036, allocations: 4.507 MB / 0.5135 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001143/0.5048, allocations: 0.4907 MB / 0.514 GB, free: 8.461 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002615/0.5051, allocations: 36 kB / 0.514 GB, free: 8.426 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009311/0.506, allocations: 103.9 kB / 0.5141 GB, free: 8.324 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004853/0.5065, allocations: 193 kB / 0.5143 GB, free: 8.137 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/0.5066, allocations: 47.98 kB / 0.5144 GB, free: 8.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001932/0.5086, allocations: 1.262 MB / 0.5156 GB, free: 6.836 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5086, allocations: 0 / 0.5156 GB, free: 6.836 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002224/0.5108, allocations: 0.6328 MB / 0.5162 GB, free: 6.203 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.000468/0.5113, allocations: 224.1 kB / 0.5164 GB, free: 5.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005507/0.5168, allocations: 3.246 MB / 0.5196 GB, free: 2.648 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/0.5168, allocations: 4.375 kB / 0.5196 GB, free: 2.645 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003213/0.52, allocations: 2.242 MB / 0.5218 GB, free: 336 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00221/0.5223, allocations: 0.5793 MB / 0.5224 GB, free: 15.75 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008716/0.531, allocations: 5.688 MB / 0.5279 GB, free: 10.01 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001837/0.5329, allocations: 2.18 MB / 0.53 GB, free: 7.789 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001217/0.5341, allocations: 461.5 kB / 0.5305 GB, free: 7.336 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000372/0.5345, allocations: 127.4 kB / 0.5306 GB, free: 7.211 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5345, allocations: 4 kB / 0.5306 GB, free: 7.207 MB / 462.1 MB Notification: Performance of Templates: time 0.2893/0.8237, allocations: 38.11 MB / 0.5678 GB, free: 109.7 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