Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_2_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.2/package.mo): time 0.01698/0.01698, allocations: 108.1 kB / 15.06 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001966/0.001966, allocations: 183.1 kB / 15.95 MB, free: 5.52 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.036/2.036, allocations: 194.6 MB / 211.3 MB, free: 10.95 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.3278/0.3278, allocations: 40.04 MB / 296.5 MB, free: 6.121 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005395/0.0005396, allocations: 16 kB / 361.1 MB, free: 9.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1337, allocations: 54.88 MB / 416 MB, free: 2.539 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002326/0.136, allocations: 1.199 MB / 417.2 MB, free: 1.316 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001169/0.1373, allocations: 0.4924 MB / 417.7 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.516e-05/0.1373, allocations: 0 / 417.7 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.316e-05/0.1374, allocations: 3.938 kB / 417.7 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001033/0.1375, allocations: 19.95 kB / 417.7 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.1377, allocations: 19.92 kB / 417.8 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001132/0.1378, allocations: 59.86 kB / 417.8 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.343e-05/0.1379, allocations: 11.98 kB / 417.8 MB, free: 0.707 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.1381, allocations: 39.84 kB / 417.9 MB, free: 0.668 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.237e-05/0.1382, allocations: 31.91 kB / 417.9 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.766e-05/0.1382, allocations: 0 / 417.9 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.974e-05/0.1382, allocations: 4 kB / 417.9 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.277e-05/0.1383, allocations: 19.91 kB / 417.9 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.927e-05/0.1383, allocations: 45.62 kB / 418 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.1384, allocations: 35.92 kB / 418 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.604e-06/0.1385, allocations: 0 / 418 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1385, allocations: 4 kB / 418 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.1385, allocations: 0 / 418 MB, free: 0.5234 MB / 346.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.0007813/0.1393, allocations: 399.3 kB / 418.4 MB, free: 88 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.1393, allocations: 8.031 kB / 418.4 MB, free: 80 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.891e-05/0.1394, allocations: 42.55 kB / 418.4 MB, free: 28 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.818e-05/0.1394, allocations: 7.906 kB / 418.5 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000184/0.1396, allocations: 171 kB / 418.6 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.1397, allocations: 4 kB / 418.6 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.337e-05/0.1397, allocations: 19.88 kB / 418.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/0.14, allocations: 77.66 kB / 418.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.14, allocations: 0 / 418.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.456e-05/0.14, allocations: 11.98 kB / 418.7 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.1401, allocations: 0 / 418.7 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002158/0.1403, allocations: 51.97 kB / 418.8 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006958/0.141, allocations: 316.7 kB / 419.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002881/0.1413, allocations: 110.4 kB / 419.2 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.1414, allocations: 224 / 419.2 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002875/0.1417, allocations: 103.3 kB / 419.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 2.034e-06/0.1417, allocations: 0 / 419.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006519/0.1423, allocations: 197.6 kB / 419.5 MB, free: 14.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/0.1424, allocations: 59.39 kB / 419.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001178/0.1425, allocations: 114 kB / 419.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.315e-05/0.1426, allocations: 33.7 kB / 419.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.479e-05/0.1427, allocations: 92.31 kB / 419.8 MB, free: 14.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.315e-05/0.1427, allocations: 35.56 kB / 419.8 MB, free: 14.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.488e-06/0.1427, allocations: 0 / 419.8 MB, free: 14.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.1429, allocations: 326.8 kB / 420.1 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/0.1431, allocations: 44.34 kB / 420.2 MB, free: 14.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.1433, allocations: 72.33 kB / 420.3 MB, free: 14.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/0.1434, allocations: 55.92 kB / 420.3 MB, free: 13.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.1435, allocations: 0 / 420.3 MB, free: 13.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000446/0.1439, allocations: 165.3 kB / 420.5 MB, free: 13.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.1439, allocations: 4 kB / 420.5 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.144, allocations: 0 / 420.5 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.144, allocations: 4.156 kB / 420.5 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.1442, allocations: 23.98 kB / 420.5 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.1442, allocations: 4 kB / 420.5 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.1443, allocations: 11.94 kB / 420.5 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.1444, allocations: 7.938 kB / 420.5 MB, free: 13.76 MB / 362.7 MB 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.000139/0.1445, allocations: 132 kB / 420.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.646e-05/0.1445, allocations: 7.906 kB / 420.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.729e-05/0.1446, allocations: 12.5 kB / 420.7 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1446, allocations: 4 kB / 420.7 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1446, allocations: 0 / 420.7 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.1446, allocations: 3.984 kB / 420.7 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008042/0.1454, allocations: 454.3 kB / 421.1 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.1455, allocations: 0 / 421.1 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.042e-05/0.1456, allocations: 12.38 kB / 421.1 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.1456, allocations: 0 / 421.1 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.1456, allocations: 7.984 kB / 421.1 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.1456, allocations: 0 / 421.1 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1456, allocations: 7.938 kB / 421.1 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004954/0.1461, allocations: 251.9 kB / 421.4 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.596e-05/0.1462, allocations: 88.95 kB / 421.5 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.658e-05/0.1463, allocations: 8 kB / 421.5 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.1464, allocations: 11.98 kB / 421.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.1465, allocations: 7.984 kB / 421.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-05/0.1465, allocations: 8 kB / 421.5 MB, free: 12.67 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.397e-05/0.1466, allocations: 91.27 kB / 421.6 MB, free: 12.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.1466, allocations: 0 / 421.6 MB, free: 12.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003508/0.147, allocations: 24 kB / 421.6 MB, free: 12.55 MB / 362.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.0008498/0.1479, allocations: 0.806 MB / 422.4 MB, free: 11.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004247/0.1483, allocations: 103.9 kB / 422.5 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1483, allocations: 320 / 422.5 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001928/0.1485, allocations: 63.91 kB / 422.6 MB, free: 11.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002496/0.1488, allocations: 8 kB / 422.6 MB, free: 11.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001839/0.1506, allocations: 1.403 MB / 424 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.151, allocations: 0.6965 MB / 424.7 MB, free: 9.352 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.824e-05/0.1511, allocations: 16.88 kB / 424.7 MB, free: 9.336 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.667e-05/0.1511, allocations: 27.44 kB / 424.8 MB, free: 9.309 MB / 362.7 MB Notification: Performance of SimCode: time 7.32e-07/0.1512, allocations: 0 / 424.8 MB, free: 9.309 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02428/0.1754, allocations: 1.86 MB / 426.6 MB, free: 7.52 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003396/0.1759, allocations: 165.2 kB / 426.8 MB, free: 7.281 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.404/2.58, allocations: 4 kB / 426.8 MB, free: 7.277 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat