Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.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.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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001598/0.001598, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001929/0.001929, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 69.11 kB / 307.6 MB, free: 0.6406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09263/0.0939, allocations: 50.53 MB / 358.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01211/0.106, allocations: 10.33 MB / 368.5 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006456/0.1125, allocations: 3.287 MB / 371.8 MB, free: 440 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001545/0.1141, allocations: 51.81 kB / 371.8 MB, free: 388 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1554/0.2695, allocations: 0.6895 MB / 372.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002819/0.2724, allocations: 0.881 MB / 373.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009643/0.2734, allocations: 424 kB / 373.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004064/0.2774, allocations: 3.404 MB / 377.2 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00295/0.2804, allocations: 2.605 MB / 379.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002419/0.2829, allocations: 1.52 MB / 381.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002463/0.2853, allocations: 1.854 MB / 383.2 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007056/0.2861, allocations: 397.1 kB / 383.6 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001378/0.2874, allocations: 0.4888 MB / 384.1 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001164/0.2886, allocations: 1.108 MB / 385.2 MB, free: 7.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002565/0.2912, allocations: 1.78 MB / 386.9 MB, free: 6.277 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005561/0.2968, allocations: 5.172 MB / 392.1 MB, free: 3.805 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.2968, allocations: 0 / 392.1 MB, free: 3.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2968, allocations: 0 / 392.1 MB, free: 3.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000139/0.297, allocations: 4 kB / 392.1 MB, free: 3.801 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.00789/0.3049, allocations: 3.542 MB / 395.7 MB, free: 1.395 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.3049, allocations: 10.22 kB / 395.7 MB, free: 1.395 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001278/0.3062, allocations: 380.7 kB / 396 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003011/0.3092, allocations: 1.881 MB / 397.9 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/0.3094, allocations: 197.5 kB / 398.1 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000394/0.3098, allocations: 260.1 kB / 398.4 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006069/0.3159, allocations: 3.535 MB / 401.9 MB, free: 13.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.909e-05/0.316, allocations: 3.938 kB / 401.9 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002636/0.3162, allocations: 111 kB / 402 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/0.3164, allocations: 108.9 kB / 402.1 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005802/0.3222, allocations: 3.091 MB / 405.2 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01832/0.3405, allocations: 10.86 MB / 416.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003564/0.3441, allocations: 3.073 MB / 419.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002175/0.3463, allocations: 1.39 MB / 420.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002788/0.3466, allocations: 125.2 kB / 420.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001781/0.3484, allocations: 1.155 MB / 421.8 MB, free: 8.965 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 3.346e-06/0.3484, allocations: 0 / 421.8 MB, free: 8.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.02085/0.3693, allocations: 8.891 MB / 430.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/0.3695, allocations: 176.2 kB / 430.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002902/0.3724, allocations: 1.848 MB / 432.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002455/0.3726, allocations: 57.7 kB / 432.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001123/0.3738, allocations: 1.208 MB / 434 MB, free: 12.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005921/0.3744, allocations: 0.5532 MB / 434.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005894/0.375, allocations: 355.3 kB / 434.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.3751, allocations: 305.1 kB / 435.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001759/0.3769, allocations: 1.003 MB / 436.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002033/0.3789, allocations: 1.434 MB / 437.6 MB, free: 8.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003709/0.3826, allocations: 2.451 MB / 440.1 MB, free: 6.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.3827, allocations: 4 kB / 440.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005819/0.3885, allocations: 3.33 MB / 443.4 MB, free: 2.844 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.112e-05/0.3885, allocations: 14.81 kB / 443.4 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.097e-05/0.3886, allocations: 12 kB / 443.4 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002066/0.3907, allocations: 0.885 MB / 444.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001336/0.392, allocations: 335.5 kB / 444.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01254/0.4046, allocations: 10.44 MB / 455.1 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002085/0.4067, allocations: 139.9 kB / 455.2 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002703/0.407, allocations: 67.94 kB / 455.3 MB, free: 6.539 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.001882/0.4089, allocations: 0.9247 MB / 456.2 MB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005055/0.4094, allocations: 205.5 kB / 456.4 MB, free: 5.406 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005649/0.415, allocations: 3.116 MB / 459.5 MB, free: 2.262 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.4151, allocations: 16 kB / 459.6 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.594e-05/0.4151, allocations: 8 kB / 459.6 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-05/0.4151, allocations: 7.969 kB / 459.6 MB, free: 2.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01188/0.427, allocations: 6.263 MB / 465.8 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.521e-05/0.4271, allocations: 8.031 kB / 465.8 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000948/0.428, allocations: 211.6 kB / 466 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002395/0.4304, allocations: 0.9368 MB / 467 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001638/0.4306, allocations: 35.98 kB / 467 MB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01409/0.4447, allocations: 12.03 MB / 479.1 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.4447, allocations: 0 / 479.1 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007915/0.4527, allocations: 4.515 MB / 483.6 MB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001312/0.454, allocations: 0.4944 MB / 484.1 MB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007097/0.4547, allocations: 43.98 kB / 484.1 MB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001384/0.4561, allocations: 95.89 kB / 484.2 MB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005078/0.4567, allocations: 197 kB / 484.4 MB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001189/0.4568, allocations: 43.98 kB / 484.4 MB, free: 8.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002258/0.4591, allocations: 1.271 MB / 485.7 MB, free: 7.398 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4591, allocations: 0 / 485.7 MB, free: 7.398 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002584/0.4617, allocations: 0.6328 MB / 486.3 MB, free: 6.766 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.0004703/0.4621, allocations: 216.3 kB / 486.5 MB, free: 6.551 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007718/0.4699, allocations: 4.238 MB / 490.8 MB, free: 2.227 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.4699, allocations: 0 / 490.8 MB, free: 2.227 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003491/0.4734, allocations: 2.199 MB / 493 MB, free: 15.95 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003287/0.4767, allocations: 0.5785 MB / 493.6 MB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/0.4875, allocations: 5.777 MB / 499.3 MB, free: 9.555 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002297/0.4898, allocations: 2.157 MB / 0.4897 GB, free: 7.363 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000702/0.4905, allocations: 139.4 kB / 0.4899 GB, free: 7.227 MB / 414.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4905, allocations: 0 / 0.4899 GB, free: 7.227 MB / 414.1 MB Notification: Performance of Templates: time 0.2655/0.756, allocations: 103.2 MB / 0.5906 GB, free: 100.6 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches