Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.FirstOrderHold.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.371/2.371, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.864e-05/4.894e-05, allocations: 4 kB / 309.8 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4188/0.4189, allocations: 54.86 MB / 364.6 MB, free: 5.559 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1543/0.5732, allocations: 80.71 MB / 445.3 MB, free: 15.76 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.5735, allocations: 64.91 kB / 445.4 MB, free: 15.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006585/0.5801, allocations: 1.442 MB / 446.8 MB, free: 14.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5802, allocations: 0 / 446.8 MB, free: 14.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.5802, allocations: 0 / 446.8 MB, free: 14.27 MB / 378.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.0007118/0.5809, allocations: 390.2 kB / 447.2 MB, free: 13.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.581, allocations: 8.031 kB / 447.2 MB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.256e-05/0.5811, allocations: 34.56 kB / 447.3 MB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.553e-05/0.5811, allocations: 11.89 kB / 447.3 MB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.5813, allocations: 172.3 kB / 447.4 MB, free: 13.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.5814, allocations: 4 kB / 447.4 MB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/0.5814, allocations: 12 kB / 447.5 MB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002318/0.5817, allocations: 78.41 kB / 447.5 MB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.5817, allocations: 0 / 447.5 MB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/0.5817, allocations: 7.953 kB / 447.5 MB, free: 13.47 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.5817, allocations: 0 / 447.5 MB, free: 13.47 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001342/0.5819, allocations: 32 kB / 447.6 MB, free: 13.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007587/0.5826, allocations: 340.6 kB / 447.9 MB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002416/0.5829, allocations: 82.56 kB / 448 MB, free: 12.97 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.583, allocations: 37.52 kB / 448 MB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.443e-05/0.5831, allocations: 3.953 kB / 448 MB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002585/0.5833, allocations: 103.2 kB / 448.1 MB, free: 12.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 4.869e-06/0.5834, allocations: 0 / 448.1 MB, free: 12.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004481/0.5838, allocations: 140.6 kB / 448.3 MB, free: 12.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.465e-05/0.5839, allocations: 59.41 kB / 448.3 MB, free: 12.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.584, allocations: 107 kB / 448.4 MB, free: 12.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.563e-05/0.5841, allocations: 33.7 kB / 448.5 MB, free: 12.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.386e-05/0.5842, allocations: 158.8 kB / 448.6 MB, free: 12.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.59e-05/0.5843, allocations: 35.69 kB / 448.7 MB, free: 12.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.768e-06/0.5843, allocations: 0 / 448.7 MB, free: 12.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.5845, allocations: 322.8 kB / 449 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.817e-05/0.5846, allocations: 28.38 kB / 449 MB, free: 11.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.5847, allocations: 76.47 kB / 449.1 MB, free: 11.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/0.5849, allocations: 41.59 kB / 449.1 MB, free: 11.78 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.5849, allocations: 0 / 449.1 MB, free: 11.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003718/0.5853, allocations: 146.5 kB / 449.3 MB, free: 11.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.5853, allocations: 11.95 kB / 449.3 MB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.5853, allocations: 0 / 449.3 MB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.5854, allocations: 4 kB / 449.3 MB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.5856, allocations: 27.92 kB / 449.3 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.5856, allocations: 0 / 449.3 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.5857, allocations: 15.84 kB / 449.3 MB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.5858, allocations: 12.72 kB / 449.3 MB, free: 11.56 MB / 378.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 () * 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.0001243/0.5859, allocations: 119.2 kB / 449.4 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.064e-05/0.5859, allocations: 11.89 kB / 449.5 MB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.772e-05/0.586, allocations: 12.7 kB / 449.5 MB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.586, allocations: 4 kB / 449.5 MB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.586, allocations: 0 / 449.5 MB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.586, allocations: 0.8438 kB / 449.5 MB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007441/0.5868, allocations: 429.2 kB / 449.9 MB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.5868, allocations: 0 / 449.9 MB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.5869, allocations: 19.92 kB / 449.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.5869, allocations: 0 / 449.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.587, allocations: 4 kB / 449.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.587, allocations: 0 / 449.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.587, allocations: 0 / 449.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000416/0.5874, allocations: 240.4 kB / 450.1 MB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.623e-05/0.5875, allocations: 97.28 kB / 450.2 MB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.377e-05/0.5875, allocations: 4 kB / 450.2 MB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001701/0.5877, allocations: 11.98 kB / 450.3 MB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.559e-05/0.5878, allocations: 11.97 kB / 450.3 MB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.5878, allocations: 7.938 kB / 450.3 MB, free: 10.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.932e-05/0.5879, allocations: 95.22 kB / 450.4 MB, free: 10.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5879, allocations: 3.938 kB / 450.4 MB, free: 10.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000337/0.5883, allocations: 27.98 kB / 450.4 MB, free: 10.38 MB / 378.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) * 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.0007631/0.5891, allocations: 0.7761 MB / 451.2 MB, free: 9.582 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003488/0.5894, allocations: 95.86 kB / 451.3 MB, free: 9.488 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5894, allocations: 0 / 451.3 MB, free: 9.488 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.5896, allocations: 45.25 kB / 451.3 MB, free: 9.445 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.5899, allocations: 16.3 kB / 451.3 MB, free: 9.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006964/0.5906, allocations: 199.4 kB / 451.5 MB, free: 9.195 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.5909, allocations: 0.6965 MB / 452.2 MB, free: 8.473 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.658e-05/0.591, allocations: 23.44 kB / 452.2 MB, free: 8.449 MB / 378.7 MB Notification: Performance of SimCode: time 1.193e-06/0.591, allocations: 0 / 452.2 MB, free: 8.449 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.358/2.95, allocations: 1.542 MB / 453.8 MB, free: 6.914 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat