Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01818/0.01819, allocations: 102.6 kB / 15.05 MB, free: 6.031 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001621/0.001621, allocations: 170.8 kB / 15.93 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.658/1.658, allocations: 170.9 MB / 187.6 MB, free: 1.004 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2808/0.2808, allocations: 38.09 MB / 265.1 MB, free: 3.977 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006487/0.0006485, allocations: 12 kB / 323.6 MB, free: 29.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09561/0.09631, allocations: 48.71 MB / 372.3 MB, free: 12.87 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002/0.09837, allocations: 1.187 MB / 373.5 MB, free: 11.67 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.09948, allocations: 487.5 kB / 373.9 MB, free: 11.19 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.33e-05/0.09955, allocations: 0 / 373.9 MB, free: 11.19 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.238e-05/0.09958, allocations: 7.922 kB / 373.9 MB, free: 11.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.339e-05/0.09969, allocations: 3.984 kB / 374 MB, free: 11.18 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002008/0.0999, allocations: 39.89 kB / 374 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001163/0.1, allocations: 55.86 kB / 374 MB, free: 11.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.927e-05/0.1001, allocations: 15.97 kB / 374.1 MB, free: 11.07 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001208/0.1003, allocations: 27.92 kB / 374.1 MB, free: 11.04 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000126/0.1004, allocations: 43.81 kB / 374.1 MB, free: 11 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.1005, allocations: 4 kB / 374.1 MB, free: 11 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.09e-05/0.1005, allocations: 4 kB / 374.1 MB, free: 10.99 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.468e-05/0.1005, allocations: 15.92 kB / 374.2 MB, free: 10.98 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.313e-05/0.1006, allocations: 41.64 kB / 374.2 MB, free: 10.93 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001083/0.1007, allocations: 56.05 kB / 374.3 MB, free: 10.88 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.1007, allocations: 0 / 374.3 MB, free: 10.88 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1007, allocations: 0 / 374.3 MB, free: 10.88 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.1008, allocations: 4 kB / 374.3 MB, free: 10.87 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007857/0.1015, allocations: 387.1 kB / 374.6 MB, free: 10.45 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.1016, allocations: 12.03 kB / 374.6 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.517e-05/0.1017, allocations: 34.56 kB / 374.7 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.982e-05/0.1017, allocations: 11.84 kB / 374.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001441/0.1019, allocations: 179 kB / 374.9 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.1019, allocations: 0 / 374.9 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/0.1019, allocations: 12 kB / 374.9 MB, free: 10.15 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002711/0.1022, allocations: 85.58 kB / 375 MB, free: 10.06 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.1023, allocations: 0 / 375 MB, free: 10.06 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.1023, allocations: 8 kB / 375 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.1023, allocations: 0 / 375 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002186/0.1025, allocations: 47.97 kB / 375 MB, free: 10.01 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007148/0.1033, allocations: 336.6 kB / 375.3 MB, free: 9.629 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002983/0.1036, allocations: 94.48 kB / 375.4 MB, free: 9.527 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.1036, allocations: 4 kB / 375.4 MB, free: 9.523 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003128/0.1039, allocations: 95.36 kB / 375.5 MB, free: 9.418 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 2.405e-06/0.104, allocations: 0 / 375.5 MB, free: 9.418 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006724/0.1046, allocations: 189.7 kB / 375.7 MB, free: 9.227 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.325e-05/0.1047, allocations: 59.41 kB / 375.8 MB, free: 9.156 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.1049, allocations: 133.7 kB / 375.9 MB, free: 9.016 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.218e-05/0.1049, allocations: 33.7 kB / 375.9 MB, free: 8.977 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.182e-05/0.105, allocations: 92.05 kB / 376 MB, free: 8.883 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.168e-05/0.105, allocations: 35.53 kB / 376.1 MB, free: 8.848 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.08e-05/0.1051, allocations: 8 kB / 376.1 MB, free: 8.84 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1052, allocations: 322.8 kB / 376.4 MB, free: 8.516 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.1053, allocations: 32.17 kB / 376.4 MB, free: 8.484 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.1055, allocations: 77.02 kB / 376.5 MB, free: 8.395 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001774/0.1057, allocations: 55.92 kB / 376.5 MB, free: 8.34 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1057, allocations: 0 / 376.5 MB, free: 8.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004608/0.1062, allocations: 157.6 kB / 376.7 MB, free: 8.18 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.1062, allocations: 8 kB / 376.7 MB, free: 8.172 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1063, allocations: 0 / 376.7 MB, free: 8.172 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.1063, allocations: 4 kB / 376.7 MB, free: 8.168 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000189/0.1065, allocations: 23.92 kB / 376.7 MB, free: 8.145 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/0.1065, allocations: 7.953 kB / 376.7 MB, free: 8.137 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.1066, allocations: 11.91 kB / 376.8 MB, free: 8.125 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.1067, allocations: 4 kB / 376.8 MB, free: 8.121 MB / 282.7 MB Warning: Assuming fixed start value for the following 2 variables: firstOrderHold.firstTrigger:DISCRETE(fixed = true protected = true ) "Rising edge signals first sample instant" type: Boolean zeroOrderHold.firstTrigger:DISCRETE(fixed = true protected = true ) "Rising edge signals first sample instant" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 prepare postOptimizeDAE: time 0.0002313/0.1069, allocations: 156.9 kB / 376.9 MB, free: 7.961 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.661e-05/0.1069, allocations: 7.906 kB / 376.9 MB, free: 7.953 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.026e-05/0.107, allocations: 8.5 kB / 376.9 MB, free: 7.945 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.107, allocations: 4 kB / 376.9 MB, free: 7.941 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.107, allocations: 3.938 kB / 376.9 MB, free: 7.938 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.107, allocations: 3.953 kB / 376.9 MB, free: 7.934 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008241/0.1079, allocations: 442.3 kB / 377.4 MB, free: 7.445 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1079, allocations: 4 kB / 377.4 MB, free: 7.441 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.194e-05/0.108, allocations: 11.98 kB / 377.4 MB, free: 7.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.108, allocations: 0 / 377.4 MB, free: 7.43 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.108, allocations: 7.953 kB / 377.4 MB, free: 7.422 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.1081, allocations: 0 / 377.4 MB, free: 7.422 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1081, allocations: 0 / 377.4 MB, free: 7.422 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004967/0.1086, allocations: 264 kB / 377.7 MB, free: 7.148 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.805e-05/0.1087, allocations: 96.94 kB / 377.8 MB, free: 7.035 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.016e-05/0.1087, allocations: 11.98 kB / 377.8 MB, free: 7.023 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.1089, allocations: 7.953 kB / 377.8 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.098e-05/0.109, allocations: 7.984 kB / 377.8 MB, free: 7.008 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.758e-05/0.109, allocations: 7.984 kB / 377.8 MB, free: 7 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.17e-05/0.1091, allocations: 95.28 kB / 377.9 MB, free: 6.906 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-07/0.1091, allocations: 0 / 377.9 MB, free: 6.906 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003538/0.1095, allocations: 27.98 kB / 377.9 MB, free: 6.879 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0007849/0.1103, allocations: 0.7865 MB / 378.7 MB, free: 6.066 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003891/0.1107, allocations: 103.9 kB / 378.8 MB, free: 5.965 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1107, allocations: 0 / 378.8 MB, free: 5.965 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001811/0.1109, allocations: 51.92 kB / 378.8 MB, free: 5.914 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.1111, allocations: 15.94 kB / 378.9 MB, free: 5.898 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.113, allocations: 1.418 MB / 380.3 MB, free: 4.406 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/0.1133, allocations: 0.7004 MB / 381 MB, free: 3.68 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.379e-05/0.1134, allocations: 12.88 kB / 381 MB, free: 3.668 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.354e-05/0.1135, allocations: 23.44 kB / 381 MB, free: 3.645 MB / 282.7 MB Notification: Performance of SimCode: time 7.81e-07/0.1135, allocations: 3.938 kB / 381 MB, free: 3.641 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02158/0.1351, allocations: 1.885 MB / 382.9 MB, free: 1.844 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000362/0.1356, allocations: 165.2 kB / 383.1 MB, free: 1.605 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.328/2.464, allocations: 3.938 kB / 383.1 MB, free: 1.602 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat