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/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 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 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 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001614/0.001615, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 204.7 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.614/1.614, allocations: 205.1 MB / 222.6 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4339/0.4339, allocations: 43.5 MB / 313.5 MB, free: 8.219 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 62.56 kB / 382 MB, free: 8.523 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1634/0.165, allocations: 57.78 MB / 439.8 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.PadeDelay2): time 0.003417/0.1685, allocations: 1.888 MB / 441.7 MB, free: 12.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002338/0.1709, allocations: 1.459 MB / 443.2 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.171, allocations: 4 kB / 443.2 MB, free: 11.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002425/0.1713, allocations: 19.84 kB / 443.2 MB, free: 11.24 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.834e-05/0.1714, allocations: 23.78 kB / 443.2 MB, free: 11.22 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001647/0.173, allocations: 483.1 kB / 443.7 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003161/0.1734, allocations: 271.2 kB / 443.9 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.1736, allocations: 48.28 kB / 444 MB, free: 10.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.1738, allocations: 95.61 kB / 444.1 MB, free: 10.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002596/0.174, allocations: 167.5 kB / 444.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.245e-05/0.1741, allocations: 12 kB / 444.3 MB, free: 10.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001071/0.1752, allocations: 0.7291 MB / 445 MB, free: 9.438 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001558/0.1753, allocations: 103.7 kB / 445.1 MB, free: 9.336 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001651/0.1755, allocations: 139.1 kB / 445.2 MB, free: 9.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00128/0.1768, allocations: 1.048 MB / 446.3 MB, free: 8.148 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.1768, allocations: 4 kB / 446.3 MB, free: 8.145 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1768, allocations: 0 / 446.3 MB, free: 8.145 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.1768, allocations: 0 / 446.3 MB, free: 8.145 MB / 382.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.00152/0.1784, allocations: 0.7167 MB / 447 MB, free: 7.379 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.1784, allocations: 16.02 kB / 447 MB, free: 7.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.493e-05/0.1785, allocations: 32.56 kB / 447 MB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003317/0.1788, allocations: 276 kB / 447.3 MB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.1789, allocations: 19.94 kB / 447.3 MB, free: 7.004 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.994e-05/0.1789, allocations: 27.91 kB / 447.4 MB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004977/0.1794, allocations: 279 kB / 447.6 MB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.1795, allocations: 4 kB / 447.6 MB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.575e-05/0.1795, allocations: 4 kB / 447.6 MB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.1795, allocations: 4 kB / 447.6 MB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004236/0.1799, allocations: 219.8 kB / 447.9 MB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.1812, allocations: 0.7577 MB / 448.6 MB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005431/0.1817, allocations: 284.9 kB / 448.9 MB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003026/0.182, allocations: 189.6 kB / 449.1 MB, free: 5.164 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.1821, allocations: 8 kB / 449.1 MB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.852e-05/0.1821, allocations: 42.48 kB / 449.1 MB, free: 5.105 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.343e-06/0.1821, allocations: 0 / 449.1 MB, free: 5.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.001066/0.1832, allocations: 0.5402 MB / 449.7 MB, free: 4.559 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.1833, allocations: 77.11 kB / 449.7 MB, free: 4.465 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003455/0.1836, allocations: 352.5 kB / 450.1 MB, free: 4.109 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.1837, allocations: 33.7 kB / 450.1 MB, free: 4.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.998e-05/0.1838, allocations: 136.8 kB / 450.3 MB, free: 3.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.18e-05/0.1838, allocations: 102.5 kB / 450.4 MB, free: 3.828 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.184, allocations: 129.6 kB / 450.5 MB, free: 3.695 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1841, allocations: 346.8 kB / 450.8 MB, free: 3.348 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003998/0.1845, allocations: 284.9 kB / 451.1 MB, free: 3.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004178/0.185, allocations: 343.5 kB / 451.4 MB, free: 2.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003387/0.1884, allocations: 1.76 MB / 453.2 MB, free: 0.957 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.93e-06/0.1884, allocations: 4 kB / 453.2 MB, free: 0.9531 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001035/0.1894, allocations: 0.7659 MB / 454 MB, free: 184 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.1895, allocations: 4 kB / 454 MB, free: 180 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.506e-05/0.1895, allocations: 15.97 kB / 454 MB, free: 164 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.1895, allocations: 3.984 kB / 454 MB, free: 160 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004616/0.19, allocations: 91.88 kB / 454.1 MB, free: 68 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.19, allocations: 4 kB / 454.1 MB, free: 64 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2752/0.4652, allocations: 67.47 kB / 454.1 MB, free: 48.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.4654, allocations: 11.72 kB / 454.2 MB, free: 48.63 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: padeDelay2a.x[3]:VARIABLE(fixed = true 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(fixed = true 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(fixed = true 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(fixed = true 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(fixed = true 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(fixed = true 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003777/0.4658, allocations: 176.9 kB / 454.3 MB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.4659, allocations: 29.39 kB / 454.4 MB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001092/0.466, allocations: 38.55 kB / 454.4 MB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.466, allocations: 2.969 kB / 454.4 MB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.466, allocations: 5.984 kB / 454.4 MB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.466, allocations: 2.312 kB / 454.4 MB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004382/0.4665, allocations: 335.9 kB / 454.7 MB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.4665, allocations: 3.812 kB / 454.7 MB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003954/0.4669, allocations: 49.69 kB / 454.8 MB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.4669, allocations: 5.906 kB / 454.8 MB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.765e-05/0.467, allocations: 14.77 kB / 454.8 MB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.344e-05/0.467, allocations: 6.781 kB / 454.8 MB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.467, allocations: 0.6094 kB / 454.8 MB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009008/0.4679, allocations: 0.7407 MB / 455.6 MB, free: 48.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.404e-05/0.468, allocations: 109.4 kB / 455.7 MB, free: 48.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.501e-05/0.468, allocations: 17.38 kB / 455.7 MB, free: 48.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.4682, allocations: 9.031 kB / 455.7 MB, free: 48.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.095e-05/0.4683, allocations: 23.39 kB / 455.7 MB, free: 48.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.4683, allocations: 8.547 kB / 455.7 MB, free: 48.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002138/0.4686, allocations: 217.4 kB / 455.9 MB, free: 47.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4686, allocations: 4.422 kB / 455.9 MB, free: 47.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001067/0.4696, allocations: 247.3 kB / 456.2 MB, free: 47.93 MB / 382.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005443/0.4702, allocations: 256.9 kB / 456.4 MB, free: 47.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.4713, allocations: 0.738 MB / 457.2 MB, free: 47.72 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4713, allocations: 0 / 457.2 MB, free: 47.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003063/0.4716, allocations: 188.3 kB / 457.3 MB, free: 47.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.4721, allocations: 46.81 kB / 457.4 MB, free: 47.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.4735, allocations: 1.01 MB / 458.4 MB, free: 47.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.4737, allocations: 0.8095 MB / 459.2 MB, free: 46.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001644/0.4739, allocations: 65.81 kB / 459.3 MB, free: 46.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.049e-05/0.474, allocations: 22.75 kB / 459.3 MB, free: 46.58 MB / 382.1 MB Notification: Performance of SimCode: time 1.382e-06/0.474, allocations: 0 / 459.3 MB, free: 46.58 MB / 382.1 MB Notification: Performance of Templates: time 0.01022/0.4842, allocations: 6.364 MB / 465.7 MB, free: 46.36 MB / 382.1 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