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.0008632/0.0008636, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001002/0.001002, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.403/1.403, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003006/0.0003006, allocations: 11.94 kB / 301.4 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1103, allocations: 50.43 MB / 351.8 MB, free: 3.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01197/0.1223, allocations: 9.676 MB / 361.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007079/0.1294, allocations: 3.139 MB / 364.7 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001864/0.1313, allocations: 47.81 kB / 364.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002553/0.1339, allocations: 0.6021 MB / 365.3 MB, free: 5.914 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003303/0.1373, allocations: 0.8005 MB / 366.1 MB, free: 5.109 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001108/0.1384, allocations: 375.6 kB / 366.5 MB, free: 4.742 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004696/0.1431, allocations: 3.888 MB / 370.4 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2216/0.3647, allocations: 2.176 MB / 372.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002316/0.367, allocations: 1.133 MB / 373.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002841/0.3699, allocations: 1.57 MB / 375.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005452/0.3704, allocations: 163 kB / 375.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001081/0.3715, allocations: 263.8 kB / 375.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001017/0.3726, allocations: 0.8307 MB / 376.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002258/0.3748, allocations: 1.491 MB / 378 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006304/0.3812, allocations: 4.853 MB / 382.8 MB, free: 8.578 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3812, allocations: 0 / 382.8 MB, free: 8.578 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3812, allocations: 1.25 kB / 382.8 MB, free: 8.578 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001542/0.3814, allocations: 4 kB / 382.8 MB, free: 8.574 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.007643/0.389, allocations: 2.994 MB / 385.8 MB, free: 6.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.3891, allocations: 9.094 kB / 385.8 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001504/0.3906, allocations: 356.9 kB / 386.2 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003551/0.3942, allocations: 1.861 MB / 388.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/0.3943, allocations: 195.4 kB / 388.2 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005134/0.3949, allocations: 262.9 kB / 388.5 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008331/0.4032, allocations: 3.556 MB / 392.1 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.199e-05/0.4033, allocations: 8.375 kB / 392.1 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002659/0.4036, allocations: 103 kB / 392.2 MB, free: 4.156 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001418/0.4038, allocations: 113.5 kB / 392.3 MB, free: 4.137 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005998/0.4098, allocations: 3.117 MB / 395.4 MB, free: 2.543 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.023/0.4328, allocations: 10.93 MB / 406.3 MB, free: 9.938 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00391/0.4368, allocations: 3.096 MB / 409.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002352/0.4391, allocations: 1.383 MB / 410.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002885/0.4395, allocations: 126.4 kB / 410.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001884/0.4413, allocations: 1.169 MB / 412.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 3.397e-06/0.4414, allocations: 0 / 412.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.02212/0.4635, allocations: 8.995 MB / 421.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.4637, allocations: 176.2 kB / 421.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003246/0.4669, allocations: 1.832 MB / 423.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003999/0.4673, allocations: 61.69 kB / 423.2 MB, free: 8.703 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001391/0.4687, allocations: 1.201 MB / 424.4 MB, free: 7.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007995/0.4695, allocations: 0.5479 MB / 424.9 MB, free: 6.953 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000319/0.4699, allocations: 173.6 kB / 425.1 MB, free: 6.777 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.47, allocations: 301.1 kB / 425.4 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001892/0.4719, allocations: 1.019 MB / 426.4 MB, free: 5.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00216/0.4741, allocations: 1.445 MB / 427.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004169/0.4783, allocations: 2.473 MB / 430.3 MB, free: 1.285 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.349e-05/0.4783, allocations: 4 kB / 430.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006812/0.4851, allocations: 3.355 MB / 433.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.681e-05/0.4852, allocations: 8 kB / 433.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.095e-05/0.4852, allocations: 12 kB / 433.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002332/0.4876, allocations: 0.8806 MB / 434.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/0.4892, allocations: 341.3 kB / 434.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/0.5018, allocations: 9.566 MB / 444.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002474/0.5043, allocations: 151.8 kB / 444.6 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000344/0.5047, allocations: 71.98 kB / 444.7 MB, free: 2.621 MB / 350.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.002453/0.5071, allocations: 0.927 MB / 445.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007119/0.5078, allocations: 205.5 kB / 445.8 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006071/0.5139, allocations: 3.126 MB / 448.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.715e-05/0.514, allocations: 16 kB / 449 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.591e-05/0.514, allocations: 8 kB / 449 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.093e-05/0.514, allocations: 11.91 kB / 449 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01188/0.5259, allocations: 6.304 MB / 455.3 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.526, allocations: 4 kB / 455.3 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009035/0.5269, allocations: 217 kB / 455.5 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002286/0.5292, allocations: 0.9391 MB / 456.4 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001317/0.5293, allocations: 35.98 kB / 456.5 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01265/0.542, allocations: 11.01 MB / 467.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.542, allocations: 4 kB / 467.5 MB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007793/0.5498, allocations: 4.538 MB / 472 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00146/0.5513, allocations: 0.4907 MB / 472.5 MB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003822/0.5517, allocations: 43.92 kB / 472.6 MB, free: 6.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/0.5528, allocations: 115.9 kB / 472.7 MB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004984/0.5533, allocations: 191.8 kB / 472.9 MB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.5535, allocations: 47.98 kB / 472.9 MB, free: 5.852 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002264/0.5557, allocations: 1.258 MB / 474.2 MB, free: 4.602 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5557, allocations: 0 / 474.2 MB, free: 4.602 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002903/0.5586, allocations: 0.6368 MB / 474.8 MB, free: 3.965 MB / 382.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.0005033/0.5592, allocations: 217.7 kB / 475 MB, free: 3.758 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006047/0.5652, allocations: 3.28 MB / 478.3 MB, free: 452 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/0.5653, allocations: 3.938 kB / 478.3 MB, free: 448 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0038/0.5691, allocations: 2.263 MB / 480.6 MB, free: 14.13 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003742/0.5728, allocations: 0.5349 MB / 481.1 MB, free: 13.6 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009518/0.5824, allocations: 6.994 MB / 488.1 MB, free: 6.559 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001905/0.5843, allocations: 2.18 MB / 490.3 MB, free: 4.344 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001389/0.5857, allocations: 457.5 kB / 490.7 MB, free: 3.895 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003926/0.5861, allocations: 131.4 kB / 490.8 MB, free: 3.766 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.5861, allocations: 4 kB / 490.8 MB, free: 3.762 MB / 398.1 MB Notification: Performance of Templates: time 0.06567/0.6518, allocations: 35.33 MB / 0.5138 GB, free: 0.8945 MB / 430.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