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.001869/0.00187, allocations: 118.4 kB / 17.79 MB, free: 5.254 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.002585/0.002585, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.444/1.444, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2179/0.2179, allocations: 44.18 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00181/0.00181, allocations: 67.88 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3304, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.PadeDelay2): time 0.002449/0.3329, allocations: 1.824 MB / 0.5202 GB, free: 2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.3346, allocations: 1.34 MB / 0.5215 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.649e-05/0.3347, allocations: 6.312 kB / 0.5215 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.3348, allocations: 29.5 kB / 0.5216 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.343e-05/0.3349, allocations: 26.95 kB / 0.5216 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001388/0.3363, allocations: 0.5626 MB / 0.5221 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002765/0.3366, allocations: 283.4 kB / 0.5224 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.3367, allocations: 42.64 kB / 0.5224 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001522/0.3369, allocations: 116 kB / 0.5225 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.3371, allocations: 172.4 kB / 0.5227 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.698e-05/0.3371, allocations: 23.16 kB / 0.5227 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001124/0.3383, allocations: 0.8072 MB / 0.5235 GB, free: 376 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.3384, allocations: 115.2 kB / 0.5236 GB, free: 328 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.3385, allocations: 138.3 kB / 0.5238 GB, free: 236 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00119/0.3397, allocations: 1.079 MB / 0.5248 GB, free: 15.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.3397, allocations: 0 / 0.5248 GB, free: 15.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3397, allocations: 7.875 kB / 0.5248 GB, free: 15.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.3398, allocations: 0 / 0.5248 GB, free: 15.75 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.001246/0.341, allocations: 0.7269 MB / 0.5255 GB, free: 15.15 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.3411, allocations: 9.719 kB / 0.5255 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.001e-05/0.3411, allocations: 52.52 kB / 0.5256 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.652e-05/0.3412, allocations: 32.33 kB / 0.5256 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003264/0.3415, allocations: 284.8 kB / 0.5259 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.3416, allocations: 16.12 kB / 0.5259 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.112e-05/0.3416, allocations: 26.58 kB / 0.5259 GB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004751/0.3421, allocations: 266 kB / 0.5262 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.3421, allocations: 4 kB / 0.5262 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.474e-05/0.3422, allocations: 6.75 kB / 0.5262 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.3422, allocations: 2.75 kB / 0.5262 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004027/0.3426, allocations: 228.6 kB / 0.5264 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.3438, allocations: 0.7439 MB / 0.5271 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004607/0.3443, allocations: 295.3 kB / 0.5274 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002964/0.3446, allocations: 187.4 kB / 0.5276 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.3446, allocations: 6.984 kB / 0.5276 GB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.3446, allocations: 44.81 kB / 0.5277 GB, free: 13.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.3447, allocations: 7.938 kB / 0.5277 GB, free: 13.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.001023/0.3457, allocations: 0.5385 MB / 0.5282 GB, free: 13.26 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/0.3457, allocations: 79.86 kB / 0.5283 GB, free: 13.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003482/0.3461, allocations: 352.4 kB / 0.5286 GB, free: 12.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.592e-05/0.3461, allocations: 32.98 kB / 0.5286 GB, free: 12.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.3462, allocations: 142.2 kB / 0.5288 GB, free: 12.76 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.003e-05/0.3463, allocations: 103.2 kB / 0.5289 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.3465, allocations: 130.6 kB / 0.529 GB, free: 12.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.3467, allocations: 341.1 kB / 0.5293 GB, free: 12.26 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004264/0.3471, allocations: 287.1 kB / 0.5296 GB, free: 12.13 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004729/0.3476, allocations: 338 kB / 0.5299 GB, free: 11.95 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003524/0.3511, allocations: 1.764 MB / 0.5316 GB, free: 11.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3512, allocations: 0 / 0.5316 GB, free: 11.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00122/0.3524, allocations: 0.7674 MB / 0.5324 GB, free: 10.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.3524, allocations: 4.562 kB / 0.5324 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.148e-05/0.3525, allocations: 13.7 kB / 0.5324 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.3525, allocations: 2.156 kB / 0.5324 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004837/0.353, allocations: 108.8 kB / 0.5325 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.353, allocations: 5.031 kB / 0.5325 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002239/0.3532, allocations: 70.27 kB / 0.5326 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.241e-05/0.3533, allocations: 13.17 kB / 0.5326 GB, free: 10.59 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.0002594/0.3535, allocations: 181.3 kB / 0.5328 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.741e-05/0.3536, allocations: 26.91 kB / 0.5328 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001335/0.3537, allocations: 45.3 kB / 0.5328 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.3538, allocations: 2.188 kB / 0.5328 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3538, allocations: 1.188 kB / 0.5328 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3538, allocations: 1.094 kB / 0.5328 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004466/0.3542, allocations: 338.8 kB / 0.5332 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3542, allocations: 0 / 0.5332 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003499/0.3546, allocations: 52 kB / 0.5332 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.745e-06/0.3546, allocations: 5.031 kB / 0.5332 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.871e-05/0.3546, allocations: 18.67 kB / 0.5332 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.3547, allocations: 2.125 kB / 0.5332 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3547, allocations: 0 / 0.5332 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.3557, allocations: 0.741 MB / 0.534 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.956e-05/0.3558, allocations: 109.9 kB / 0.5341 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.533e-05/0.3559, allocations: 21.92 kB / 0.5341 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.3561, allocations: 9.406 kB / 0.5341 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.071e-05/0.3562, allocations: 18.69 kB / 0.5341 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.328e-05/0.3562, allocations: 9.719 kB / 0.5341 GB, free: 9.395 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002356/0.3564, allocations: 220.9 kB / 0.5343 GB, free: 9.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3565, allocations: 0 / 0.5343 GB, free: 9.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008847/0.3573, allocations: 252.1 kB / 0.5346 GB, free: 9.215 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.001894/0.3592, allocations: 1.436 MB / 0.536 GB, free: 8.152 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001104/0.3604, allocations: 0.7322 MB / 0.5367 GB, free: 7.727 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3604, allocations: 0 / 0.5367 GB, free: 7.727 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003485/0.3607, allocations: 201.4 kB / 0.5369 GB, free: 7.629 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005112/0.3613, allocations: 40.31 kB / 0.5369 GB, free: 7.609 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006244/0.3675, allocations: 4.519 MB / 0.5413 GB, free: 4.152 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004866/0.368, allocations: 0.8222 MB / 0.5421 GB, free: 3.301 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002179/0.3683, allocations: 70.23 kB / 0.5422 GB, free: 3.234 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001875/0.3685, allocations: 95.41 kB / 0.5423 GB, free: 3.141 MB / 398.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3685, allocations: 0 / 0.5423 GB, free: 3.141 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03699/0.4055, allocations: 10.09 MB / 0.5522 GB, free: 9.203 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.53/8.936, allocations: 12.5 kB / 0.5522 GB, free: 9.191 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