Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.PadeDelay2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.PadeDelay2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|padeDelay1a.y|padeDelay1b.y|padeDelay2a.y|padeDelay2b.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.PadeDelay2") translateModel(ModelicaTest.Blocks.PadeDelay2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|padeDelay1a.y|padeDelay1b.y|padeDelay2a.y|padeDelay2b.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.PadeDelay2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001192/0.001192, allocations: 183.7 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 205.2 MB / 218.9 MB, free: 9.195 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007962/0.0007963, allocations: 91.81 kB / 267.1 MB, free: 9.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3297/0.3297, allocations: 43.47 MB / 358.6 MB, free: 51.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.129e-05/3.132e-05, allocations: 4 kB / 425.3 MB, free: 8.184 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1282, allocations: 58.84 MB / 484.1 MB, free: 13.23 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3548/0.4831, allocations: 86.71 MB / 0.5575 GB, free: 17.24 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001413/0.4833, allocations: 61.44 kB / 0.5575 GB, free: 17.21 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02725/0.5105, allocations: 9.442 MB / 0.5668 GB, free: 10.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5106, allocations: 0 / 0.5668 GB, free: 10.7 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.719e-05/0.5106, allocations: 8 kB / 0.5668 GB, free: 10.69 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001076/0.5117, allocations: 0.6515 MB / 0.5674 GB, free: 10.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.5117, allocations: 12.03 kB / 0.5674 GB, free: 10.01 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.708e-05/0.5118, allocations: 34.97 kB / 0.5674 GB, free: 9.977 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003573/0.5122, allocations: 286 kB / 0.5677 GB, free: 9.676 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.5122, allocations: 18.62 kB / 0.5677 GB, free: 9.664 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.841e-05/0.5123, allocations: 29.41 kB / 0.5678 GB, free: 9.641 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003686/0.5126, allocations: 254.7 kB / 0.568 GB, free: 9.441 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.5126, allocations: 0 / 0.568 GB, free: 9.441 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.897e-05/0.5127, allocations: 11.62 kB / 0.568 GB, free: 9.438 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.5127, allocations: 0 / 0.568 GB, free: 9.438 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002598/0.513, allocations: 213.6 kB / 0.5682 GB, free: 9.289 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009903/0.514, allocations: 0.7632 MB / 0.569 GB, free: 8.578 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003011/0.5143, allocations: 276.1 kB / 0.5692 GB, free: 8.363 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.5145, allocations: 183.7 kB / 0.5694 GB, free: 8.238 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.5145, allocations: 4 kB / 0.5694 GB, free: 8.234 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.852e-05/0.5145, allocations: 49.7 kB / 0.5695 GB, free: 8.18 MB / 394.7 MB Notification: Performance of pre-optimization done (n=24): time 1.222e-06/0.5145, allocations: 0 / 0.5695 GB, free: 8.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005437/0.5151, allocations: 370.5 kB / 0.5698 GB, free: 7.898 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/0.5151, allocations: 85.06 kB / 0.5699 GB, free: 7.797 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002258/0.5154, allocations: 309.9 kB / 0.5702 GB, free: 7.543 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.5154, allocations: 36.33 kB / 0.5702 GB, free: 7.508 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.03e-05/0.5155, allocations: 140.7 kB / 0.5704 GB, free: 7.387 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.588e-05/0.5155, allocations: 101.1 kB / 0.5705 GB, free: 7.301 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.856e-05/0.5155, allocations: 11 kB / 0.5705 GB, free: 7.293 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.382e-05/0.5156, allocations: 347.2 kB / 0.5708 GB, free: 6.961 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002827/0.5159, allocations: 273.2 kB / 0.5711 GB, free: 6.789 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002987/0.5162, allocations: 318 kB / 0.5714 GB, free: 6.578 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003362/0.5166, allocations: 313.2 kB / 0.5717 GB, free: 6.367 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.5166, allocations: 0 / 0.5717 GB, free: 6.367 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0007492/0.5173, allocations: 0.7353 MB / 0.5724 GB, free: 5.836 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.5173, allocations: 8 kB / 0.5724 GB, free: 5.828 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.254e-05/0.5174, allocations: 7.984 kB / 0.5724 GB, free: 5.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.5174, allocations: 0 / 0.5724 GB, free: 5.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004382/0.5178, allocations: 95.88 kB / 0.5725 GB, free: 5.727 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.5179, allocations: 4 kB / 0.5725 GB, free: 5.723 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000165/0.518, allocations: 70.23 kB / 0.5726 GB, free: 5.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.74e-05/0.5181, allocations: 11.69 kB / 0.5726 GB, free: 5.652 MB / 394.7 MB Warning: Assuming fixed start value for the following 6 variables: padeDelay2a.x[3]:VARIABLE(final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay2a.x[2]:VARIABLE(final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay2a.x[1]:VARIABLE(final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay1a.x[3]:VARIABLE(final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay1a.x[2]:VARIABLE(final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay1a.x[1]:VARIABLE(final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000132/0.5182, allocations: 135.4 kB / 0.5727 GB, free: 5.527 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.039e-05/0.5183, allocations: 28.89 kB / 0.5727 GB, free: 5.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.5184, allocations: 43.2 kB / 0.5728 GB, free: 5.48 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.5184, allocations: 4 kB / 0.5728 GB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.5184, allocations: 0 / 0.5728 GB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.5184, allocations: 0 / 0.5728 GB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002967/0.5187, allocations: 342.3 kB / 0.5731 GB, free: 5.145 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.5187, allocations: 4 kB / 0.5731 GB, free: 5.141 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003252/0.519, allocations: 51.22 kB / 0.5731 GB, free: 5.094 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.5191, allocations: 3.953 kB / 0.5731 GB, free: 5.09 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.238e-05/0.5191, allocations: 15.67 kB / 0.5732 GB, free: 5.078 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.5191, allocations: 0 / 0.5732 GB, free: 5.078 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.5191, allocations: 4 kB / 0.5732 GB, free: 5.074 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006718/0.5198, allocations: 0.7208 MB / 0.5739 GB, free: 4.477 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.711e-05/0.5198, allocations: 116.8 kB / 0.574 GB, free: 4.344 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.314e-05/0.5199, allocations: 13 kB / 0.574 GB, free: 4.336 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.5201, allocations: 15.48 kB / 0.574 GB, free: 4.324 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.5202, allocations: 15.3 kB / 0.574 GB, free: 4.312 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.919e-05/0.5202, allocations: 11.98 kB / 0.574 GB, free: 4.301 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001515/0.5203, allocations: 218.3 kB / 0.5742 GB, free: 4.125 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5203, allocations: 0 / 0.5742 GB, free: 4.125 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008315/0.5212, allocations: 273.8 kB / 0.5745 GB, free: 3.867 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (padeDelay2a.x[1],padeDelay2a.x[2],padeDelay2a.x[3],padeDelay2a.x[4],padeDelay2b.x[1],padeDelay2b.x[2],padeDelay2b.x[3],padeDelay2b.x[4],padeDelay1b.x[1],padeDelay1b.x[2],padeDelay1b.x[3],padeDelay1b.x[4],padeDelay1a.x[1],padeDelay1a.x[2],padeDelay1a.x[3],padeDelay1a.x[4]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000475/0.5217, allocations: 296.8 kB / 0.5748 GB, free: 3.578 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006672/0.5223, allocations: 0.711 MB / 0.5755 GB, free: 3.047 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.5224, allocations: 0 / 0.5755 GB, free: 3.047 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002001/0.5226, allocations: 187.2 kB / 0.5757 GB, free: 2.918 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003171/0.5229, allocations: 35.58 kB / 0.5757 GB, free: 2.895 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008599/0.5238, allocations: 0.8138 MB / 0.5765 GB, free: 2.156 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002063/0.524, allocations: 0.8128 MB / 0.5773 GB, free: 1.328 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001523/0.5241, allocations: 70.02 kB / 0.5773 GB, free: 1.258 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.553e-05/0.5242, allocations: 19.44 kB / 0.5774 GB, free: 1.238 MB / 394.7 MB Notification: Performance of SimCode: time 3.2e-07/0.5242, allocations: 0 / 0.5774 GB, free: 1.238 MB / 394.7 MB Notification: Performance of Templates: time 0.01037/0.5346, allocations: 6 MB / 0.5832 GB, free: 11.28 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.PadeDelay2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.PadeDelay2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.PadeDelay2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.PadeDelay2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.PadeDelay2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.PadeDelay2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.PadeDelay2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.PadeDelay2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/PadeDelay2/PadeDelay2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.PadeDelay2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches