Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_ModelicaTest.Blocks.PadeDelay2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002211/0.00221, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.97/1.97, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001098, allocations: 88.02 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3113/0.3113, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.767e-05/2.786e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5075/0.5076, allocations: 58.86 MB / 477.1 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1605/0.6681, allocations: 86.05 MB / 0.5499 GB, free: 13.24 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.6684, allocations: 59.98 kB / 0.55 GB, free: 13.18 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05435/0.7228, allocations: 9.397 MB / 0.5592 GB, free: 3.773 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.7228, allocations: 0 / 0.5592 GB, free: 3.773 MB / 395.1 MB Notification: Performance of Transformations before backend: time 3.242e-05/0.7229, allocations: 7.938 kB / 0.5592 GB, free: 3.766 MB / 395.1 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.001844/0.7247, allocations: 0.6575 MB / 0.5598 GB, free: 3.062 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.7248, allocations: 8.031 kB / 0.5598 GB, free: 3.055 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.7249, allocations: 31.53 kB / 0.5598 GB, free: 3.023 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006205/0.7256, allocations: 292 kB / 0.5601 GB, free: 2.695 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.7256, allocations: 4 kB / 0.5601 GB, free: 2.691 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.643e-05/0.7257, allocations: 15.98 kB / 0.5601 GB, free: 2.676 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005993/0.7263, allocations: 199.9 kB / 0.5603 GB, free: 2.48 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006009/0.7269, allocations: 251.1 kB / 0.5606 GB, free: 2.223 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.727, allocations: 0 / 0.5606 GB, free: 2.223 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.727, allocations: 3.938 kB / 0.5606 GB, free: 2.219 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.753e-05/0.727, allocations: 7.984 kB / 0.5606 GB, free: 2.211 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002057/0.7291, allocations: 0.727 MB / 0.5613 GB, free: 1.441 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006079/0.7298, allocations: 265 kB / 0.5616 GB, free: 1.164 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000412/0.7302, allocations: 173.6 kB / 0.5617 GB, free: 0.9883 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.698e-05/0.7302, allocations: 4 kB / 0.5617 GB, free: 0.9844 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/0.7303, allocations: 46.55 kB / 0.5618 GB, free: 0.9297 MB / 395.1 MB Notification: Performance of pre-optimization done (n=24): time 3.056e-06/0.7303, allocations: 0 / 0.5618 GB, free: 0.9297 MB / 395.1 MB Notification: Performance of matching and sorting (n=24): time 0.001014/0.7313, allocations: 358.2 kB / 0.5621 GB, free: 0.5703 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.965e-05/0.7314, allocations: 81.11 kB / 0.5622 GB, free: 484 kB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004447/0.7319, allocations: 293.2 kB / 0.5625 GB, free: 184 kB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 5.221e-05/0.7319, allocations: 25.7 kB / 0.5625 GB, free: 152 kB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.7321, allocations: 203.5 kB / 0.5627 GB, free: 15.95 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.7322, allocations: 106.5 kB / 0.5628 GB, free: 15.84 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.887e-05/0.7323, allocations: 0 / 0.5628 GB, free: 15.84 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.7325, allocations: 342.8 kB / 0.5631 GB, free: 15.5 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005858/0.7331, allocations: 268.7 kB / 0.5634 GB, free: 15.23 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006335/0.7337, allocations: 306.3 kB / 0.5637 GB, free: 14.93 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008327/0.7346, allocations: 309.8 kB / 0.564 GB, free: 14.63 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.7346, allocations: 0 / 0.564 GB, free: 14.63 MB / 411.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00163/0.7362, allocations: 0.7034 MB / 0.5646 GB, free: 13.92 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.7363, allocations: 4 kB / 0.5646 GB, free: 13.92 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.549e-05/0.7363, allocations: 8 kB / 0.5647 GB, free: 13.91 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.688e-05/0.7363, allocations: 4 kB / 0.5647 GB, free: 13.91 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009212/0.7373, allocations: 95.88 kB / 0.5647 GB, free: 13.81 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.7373, allocations: 4 kB / 0.5648 GB, free: 13.81 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003533/0.7377, allocations: 63.11 kB / 0.5648 GB, free: 13.75 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.61e-05/0.7377, allocations: 8 kB / 0.5648 GB, free: 13.74 MB / 411.1 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.0002213/0.738, allocations: 122.4 kB / 0.5649 GB, free: 13.61 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.7381, allocations: 39.56 kB / 0.565 GB, free: 13.57 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001267/0.7382, allocations: 30.84 kB / 0.565 GB, free: 13.54 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.7383, allocations: 4 kB / 0.565 GB, free: 13.54 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.7383, allocations: 0 / 0.565 GB, free: 13.54 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.7383, allocations: 0 / 0.565 GB, free: 13.54 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000589/0.7389, allocations: 301.8 kB / 0.5653 GB, free: 13.21 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.7389, allocations: 0 / 0.5653 GB, free: 13.21 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007501/0.7397, allocations: 55.91 kB / 0.5653 GB, free: 13.15 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.7397, allocations: 0 / 0.5653 GB, free: 13.15 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.578e-05/0.7398, allocations: 12 kB / 0.5654 GB, free: 13.14 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.388e-06/0.7398, allocations: 7.938 kB / 0.5654 GB, free: 13.13 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.7398, allocations: 7.938 kB / 0.5654 GB, free: 13.12 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.7412, allocations: 0.7111 MB / 0.5661 GB, free: 12.39 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.7413, allocations: 108.8 kB / 0.5662 GB, free: 12.26 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.675e-05/0.7414, allocations: 15.94 kB / 0.5662 GB, free: 12.25 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00039/0.7419, allocations: 8 kB / 0.5662 GB, free: 12.24 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.351e-05/0.7419, allocations: 15.97 kB / 0.5662 GB, free: 12.22 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.775e-05/0.742, allocations: 8 kB / 0.5662 GB, free: 12.21 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0003486/0.7424, allocations: 204.5 kB / 0.5664 GB, free: 12.01 MB / 411.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7424, allocations: 0 / 0.5664 GB, free: 12.01 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.001234/0.7436, allocations: 263.7 kB / 0.5667 GB, free: 11.75 MB / 411.1 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.0009738/0.7446, allocations: 290.8 kB / 0.5669 GB, free: 11.46 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.001536/0.7462, allocations: 0.6912 MB / 0.5676 GB, free: 10.75 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.7462, allocations: 0 / 0.5676 GB, free: 10.75 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004372/0.7467, allocations: 179.8 kB / 0.5678 GB, free: 10.57 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005695/0.7472, allocations: 29.75 kB / 0.5678 GB, free: 10.54 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001959/0.7492, allocations: 0.8286 MB / 0.5686 GB, free: 9.676 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005718/0.7498, allocations: 0.8104 MB / 0.5694 GB, free: 8.836 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002914/0.7502, allocations: 27.44 kB / 0.5694 GB, free: 8.809 MB / 411.1 MB Notification: Performance of SimCode: time 1.012e-06/0.7502, allocations: 0 / 0.5694 GB, free: 8.809 MB / 411.1 MB Notification: Performance of Templates: time 0.02262/0.7728, allocations: 6.561 MB / 0.5759 GB, free: 2.281 MB / 411.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.PadeDelay2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.PadeDelay2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.PadeDelay2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.PadeDelay2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.PadeDelay2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.PadeDelay2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.PadeDelay2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.PadeDelay2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/PadeDelay2/PadeDelay2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.PadeDelay2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches