Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Blocks.PadeDelay2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|padeDelay1a.y|padeDelay1b.y|padeDelay2a.y|padeDelay2b.y",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.PadeDelay2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009908/0.0009908, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.0009354/0.0009354, allocations: 183.1 kB / 18.71 MB, free: 4.348 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.221/1.221, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1836/0.1836, allocations: 44.19 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 67.89 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2821, allocations: 60.82 MB / 0.5189 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.PadeDelay2): time 0.002343/0.2845, allocations: 1.838 MB / 0.5207 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001656/0.2862, allocations: 1.337 MB / 0.522 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.079e-05/0.2863, allocations: 2.094 kB / 0.522 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.2864, allocations: 29.3 kB / 0.522 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.935e-05/0.2865, allocations: 29.94 kB / 0.5221 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001304/0.2878, allocations: 0.5591 MB / 0.5226 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003072/0.2881, allocations: 286.8 kB / 0.5229 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.2882, allocations: 34.84 kB / 0.5229 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.2884, allocations: 123.1 kB / 0.523 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002371/0.2887, allocations: 176.4 kB / 0.5232 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.409e-05/0.2887, allocations: 23.47 kB / 0.5232 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001101/0.2898, allocations: 0.8058 MB / 0.524 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.29, allocations: 111.3 kB / 0.5241 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001165/0.2901, allocations: 140.2 kB / 0.5242 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009024/0.291, allocations: 1.079 MB / 0.5253 GB, free: 15.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.291, allocations: 1.375 kB / 0.5253 GB, free: 15.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.291, allocations: 3.938 kB / 0.5253 GB, free: 15.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.291, allocations: 4 kB / 0.5253 GB, free: 15.94 MB / 398.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.00109/0.2921, allocations: 0.7039 MB / 0.526 GB, free: 15.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.2922, allocations: 9.625 kB / 0.526 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.948e-05/0.2922, allocations: 36.78 kB / 0.526 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003195/0.2926, allocations: 290.3 kB / 0.5263 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.2926, allocations: 14.38 kB / 0.5263 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.771e-05/0.2926, allocations: 26.81 kB / 0.5264 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004393/0.2931, allocations: 266.8 kB / 0.5266 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.2931, allocations: 0 / 0.5266 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.471e-05/0.2931, allocations: 9.188 kB / 0.5266 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.2932, allocations: 3.938 kB / 0.5266 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000403/0.2936, allocations: 227.6 kB / 0.5268 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.2947, allocations: 0.7519 MB / 0.5276 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004371/0.2952, allocations: 288 kB / 0.5278 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002795/0.2955, allocations: 191.2 kB / 0.528 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/0.2955, allocations: 6.406 kB / 0.528 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.2956, allocations: 46.17 kB / 0.5281 GB, free: 13.81 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 3.367e-06/0.2956, allocations: 3.938 kB / 0.5281 GB, free: 13.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009599/0.2965, allocations: 0.5378 MB / 0.5286 GB, free: 13.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.2966, allocations: 88.08 kB / 0.5287 GB, free: 13.42 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000308/0.2969, allocations: 347.3 kB / 0.529 GB, free: 13.19 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.37e-05/0.2969, allocations: 31.73 kB / 0.5291 GB, free: 13.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.871e-05/0.297, allocations: 143.8 kB / 0.5292 GB, free: 13.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.169e-05/0.2971, allocations: 93.83 kB / 0.5293 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.2973, allocations: 123.4 kB / 0.5294 GB, free: 12.87 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.2974, allocations: 349.3 kB / 0.5297 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003823/0.2978, allocations: 286.8 kB / 0.53 GB, free: 12.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004235/0.2982, allocations: 334.3 kB / 0.5303 GB, free: 12.22 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003316/0.3015, allocations: 1.76 MB / 0.532 GB, free: 11.35 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.3016, allocations: 9.156 kB / 0.532 GB, free: 11.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001094/0.3027, allocations: 0.7596 MB / 0.5328 GB, free: 10.97 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.3027, allocations: 5.906 kB / 0.5328 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.44e-05/0.3027, allocations: 8.594 kB / 0.5328 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.3027, allocations: 6.406 kB / 0.5328 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004701/0.3032, allocations: 96.8 kB / 0.5329 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.3032, allocations: 5.141 kB / 0.5329 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.3034, allocations: 77.7 kB / 0.533 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.951e-05/0.3035, allocations: 12.97 kB / 0.533 GB, free: 10.87 MB / 398.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.0002344/0.3037, allocations: 174 kB / 0.5332 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.549e-05/0.3038, allocations: 25.78 kB / 0.5332 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.458e-05/0.3039, allocations: 46.08 kB / 0.5332 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.3039, allocations: 6.25 kB / 0.5332 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.3039, allocations: 1.156 kB / 0.5332 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3039, allocations: 1.188 kB / 0.5332 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003935/0.3043, allocations: 338.6 kB / 0.5336 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3044, allocations: 0 / 0.5336 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003481/0.3047, allocations: 51.88 kB / 0.5336 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.3047, allocations: 1.188 kB / 0.5336 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.619e-05/0.3048, allocations: 18.95 kB / 0.5336 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.3048, allocations: 1.562 kB / 0.5336 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3048, allocations: 0 / 0.5336 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009189/0.3057, allocations: 0.7409 MB / 0.5344 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.249e-05/0.3058, allocations: 105.7 kB / 0.5345 GB, free: 9.715 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.229e-05/0.3058, allocations: 18.98 kB / 0.5345 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002192/0.3061, allocations: 16.2 kB / 0.5345 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.873e-05/0.3061, allocations: 11.64 kB / 0.5345 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.242e-05/0.3061, allocations: 13.38 kB / 0.5345 GB, free: 9.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001807/0.3063, allocations: 224.9 kB / 0.5347 GB, free: 9.531 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3063, allocations: 0 / 0.5347 GB, free: 9.531 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007986/0.3071, allocations: 255.4 kB / 0.535 GB, free: 9.492 MB / 398.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.0004555/0.3076, allocations: 253.4 kB / 0.5352 GB, free: 9.352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009211/0.3085, allocations: 0.7345 MB / 0.5359 GB, free: 8.926 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3085, allocations: 0 / 0.5359 GB, free: 8.926 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002889/0.3088, allocations: 192.5 kB / 0.5361 GB, free: 8.836 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004683/0.3093, allocations: 46.59 kB / 0.5362 GB, free: 8.809 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.3105, allocations: 0.9214 MB / 0.5371 GB, free: 8.223 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.3108, allocations: 0.8062 MB / 0.5378 GB, free: 7.465 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001627/0.311, allocations: 69.25 kB / 0.5379 GB, free: 7.441 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.173e-05/0.3111, allocations: 21.34 kB / 0.5379 GB, free: 7.434 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3111, allocations: 0 / 0.5379 GB, free: 7.434 MB / 398.1 MB Notification: Performance of Templates: time 0.01039/0.3215, allocations: 6.614 MB / 0.5444 GB, free: 1.531 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.PadeDelay2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.PadeDelay2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.PadeDelay2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.PadeDelay2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.PadeDelay2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.PadeDelay2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.PadeDelay2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.PadeDelay2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/PadeDelay2/PadeDelay2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.PadeDelay2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches