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: "" <> buildModelFMU(ModelicaTest.Blocks.PadeDelay2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_PadeDelay2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.PadeDelay2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_PadeDelay2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 109.8 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.001248/0.001248, allocations: 183.1 kB / 18.71 MB, free: 4.34 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.406/1.406, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.248/0.248, allocations: 44.18 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 59.91 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3475, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.PadeDelay2): time 0.002822/0.3503, allocations: 1.83 MB / 0.5202 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001854/0.3522, allocations: 1.336 MB / 0.5215 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.3523, allocations: 6.062 kB / 0.5215 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.3525, allocations: 29.56 kB / 0.5215 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.818e-05/0.3526, allocations: 34.86 kB / 0.5216 GB, free: 1.047 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001682/0.3543, allocations: 0.556 MB / 0.5221 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003488/0.3547, allocations: 291.2 kB / 0.5224 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.3548, allocations: 42.36 kB / 0.5224 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001764/0.355, allocations: 122.9 kB / 0.5226 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002349/0.3552, allocations: 171.3 kB / 0.5227 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.201e-05/0.3553, allocations: 22.78 kB / 0.5227 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001366/0.3567, allocations: 0.8046 MB / 0.5235 GB, free: 368 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.3568, allocations: 113.9 kB / 0.5236 GB, free: 320 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.357, allocations: 143.1 kB / 0.5238 GB, free: 224 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001384/0.3584, allocations: 1.073 MB / 0.5248 GB, free: 15.72 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.3584, allocations: 0 / 0.5248 GB, free: 15.72 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3584, allocations: 3.938 kB / 0.5248 GB, free: 15.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.3584, allocations: 0 / 0.5248 GB, free: 15.71 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.001322/0.3597, allocations: 0.7313 MB / 0.5255 GB, free: 15.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3598, allocations: 9.625 kB / 0.5255 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.418e-05/0.3598, allocations: 50.8 kB / 0.5256 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.238e-05/0.3599, allocations: 34.45 kB / 0.5256 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003466/0.3603, allocations: 289.2 kB / 0.5259 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.3603, allocations: 10.88 kB / 0.5259 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.261e-05/0.3604, allocations: 25.7 kB / 0.5259 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004699/0.3608, allocations: 271.8 kB / 0.5262 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.3609, allocations: 0 / 0.5262 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.91e-05/0.3609, allocations: 5.375 kB / 0.5262 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.3609, allocations: 4.125 kB / 0.5262 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004143/0.3613, allocations: 228.1 kB / 0.5264 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.3626, allocations: 0.7522 MB / 0.5272 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004725/0.3631, allocations: 286.2 kB / 0.5274 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003032/0.3634, allocations: 191.5 kB / 0.5276 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.3635, allocations: 6.891 kB / 0.5276 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.3635, allocations: 42.16 kB / 0.5277 GB, free: 13.51 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.733e-06/0.3635, allocations: 7.875 kB / 0.5277 GB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.001085/0.3646, allocations: 0.5412 MB / 0.5282 GB, free: 13.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.287e-05/0.3647, allocations: 79.61 kB / 0.5283 GB, free: 13.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004129/0.3651, allocations: 348.6 kB / 0.5286 GB, free: 12.89 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.954e-05/0.3652, allocations: 35.86 kB / 0.5286 GB, free: 12.85 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.3653, allocations: 143.6 kB / 0.5288 GB, free: 12.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.479e-05/0.3654, allocations: 105.9 kB / 0.5289 GB, free: 12.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.3655, allocations: 119.1 kB / 0.529 GB, free: 12.56 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3657, allocations: 349.1 kB / 0.5293 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004701/0.3662, allocations: 286.9 kB / 0.5296 GB, free: 12.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004628/0.3666, allocations: 339 kB / 0.5299 GB, free: 11.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003628/0.3703, allocations: 1.76 MB / 0.5316 GB, free: 11.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.3703, allocations: 8 kB / 0.5316 GB, free: 11.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001226/0.3715, allocations: 0.7601 MB / 0.5324 GB, free: 10.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.3716, allocations: 5.469 kB / 0.5324 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.974e-05/0.3716, allocations: 16.61 kB / 0.5324 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.3716, allocations: 3.031 kB / 0.5324 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005144/0.3722, allocations: 96.41 kB / 0.5325 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.3722, allocations: 6.281 kB / 0.5325 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002493/0.3724, allocations: 73.78 kB / 0.5326 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.354e-05/0.3725, allocations: 12.81 kB / 0.5326 GB, free: 10.55 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.0002519/0.3727, allocations: 177.6 kB / 0.5328 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.219e-05/0.3728, allocations: 26.28 kB / 0.5328 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.3729, allocations: 45.2 kB / 0.5328 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3729, allocations: 6.656 kB / 0.5328 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.844e-06/0.373, allocations: 1.375 kB / 0.5328 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.373, allocations: 0 / 0.5328 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004337/0.3734, allocations: 339.8 kB / 0.5332 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3734, allocations: 0 / 0.5332 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003696/0.3738, allocations: 43.23 kB / 0.5332 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.3738, allocations: 2.188 kB / 0.5332 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.269e-05/0.3739, allocations: 22.86 kB / 0.5332 GB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.3739, allocations: 1.094 kB / 0.5332 GB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.3739, allocations: 1.062 kB / 0.5332 GB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.375, allocations: 0.7409 MB / 0.534 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.357e-05/0.3752, allocations: 113.1 kB / 0.5341 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.806e-05/0.3752, allocations: 15.19 kB / 0.5341 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002398/0.3755, allocations: 11.73 kB / 0.5341 GB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.489e-05/0.3755, allocations: 20.11 kB / 0.5341 GB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.3756, allocations: 12.55 kB / 0.5341 GB, free: 9.359 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002484/0.3758, allocations: 221.1 kB / 0.5343 GB, free: 9.215 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3758, allocations: 0 / 0.5343 GB, free: 9.215 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001067/0.3769, allocations: 256.3 kB / 0.5346 GB, free: 9.176 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.002072/0.379, allocations: 1.436 MB / 0.536 GB, free: 8.113 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.3802, allocations: 0.7386 MB / 0.5367 GB, free: 7.684 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3802, allocations: 0 / 0.5367 GB, free: 7.684 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000335/0.3805, allocations: 192.5 kB / 0.5369 GB, free: 7.594 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005396/0.3811, allocations: 52.42 kB / 0.5369 GB, free: 7.562 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005697/0.3868, allocations: 4.522 MB / 0.5413 GB, free: 4.105 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004121/0.3872, allocations: 0.8105 MB / 0.5421 GB, free: 3.266 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002026/0.3875, allocations: 70.25 kB / 0.5422 GB, free: 3.199 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001883/0.3877, allocations: 107.4 kB / 0.5423 GB, free: 3.094 MB / 398.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3877, allocations: 0 / 0.5423 GB, free: 3.094 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03686/0.4245, allocations: 10.08 MB / 0.5522 GB, free: 9.168 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.654/9.079, allocations: 16.5 kB / 0.5522 GB, free: 9.152 MB / 414.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.PadeDelay2_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_PadeDelay2.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.PadeDelay2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.PadeDelay2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/PadeDelay2/PadeDelay2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.PadeDelay2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches