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.727/2.727, allocations: 234.9 MB / 250.5 MB, free: 9.535 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006182/0.0006182, allocations: 12 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3835/0.3842, allocations: 54.86 MB / 369.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.186/0.5703, allocations: 80.81 MB / 450.2 MB, free: 9.789 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.5706, allocations: 59.98 kB / 450.2 MB, free: 9.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006536/0.5771, allocations: 1.453 MB / 451.7 MB, free: 8.266 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.5772, allocations: 0 / 451.7 MB, free: 8.266 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.5772, allocations: 0 / 451.7 MB, free: 8.266 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.0007554/0.578, allocations: 391.1 kB / 452.1 MB, free: 7.836 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.5781, allocations: 12.03 kB / 452.1 MB, free: 7.824 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.196e-05/0.5781, allocations: 42.7 kB / 452.1 MB, free: 7.773 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.319e-05/0.5782, allocations: 11.84 kB / 452.1 MB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001609/0.5784, allocations: 171 kB / 452.3 MB, free: 7.555 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/0.5784, allocations: 8 kB / 452.3 MB, free: 7.547 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.068e-05/0.5784, allocations: 4 kB / 452.3 MB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002888/0.5787, allocations: 89.58 kB / 452.4 MB, free: 7.449 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.5788, allocations: 0 / 452.4 MB, free: 7.449 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.5788, allocations: 0 / 452.4 MB, free: 7.449 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.5788, allocations: 7.953 kB / 452.4 MB, free: 7.441 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002226/0.579, allocations: 51.91 kB / 452.4 MB, free: 7.391 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007446/0.5798, allocations: 324.8 kB / 452.8 MB, free: 7.023 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002957/0.5801, allocations: 90.55 kB / 452.9 MB, free: 6.926 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.5802, allocations: 4 kB / 452.9 MB, free: 6.922 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003206/0.5805, allocations: 115.3 kB / 453 MB, free: 6.797 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.746e-06/0.5805, allocations: 0 / 453 MB, free: 6.797 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007372/0.5813, allocations: 189.5 kB / 453.2 MB, free: 6.605 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.5813, allocations: 59.41 kB / 453.2 MB, free: 6.535 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.5815, allocations: 105.2 kB / 453.3 MB, free: 6.422 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.537e-05/0.5815, allocations: 33.7 kB / 453.3 MB, free: 6.383 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.227e-05/0.5816, allocations: 158.8 kB / 453.5 MB, free: 6.223 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.59e-05/0.5817, allocations: 39.55 kB / 453.5 MB, free: 6.184 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.013e-05/0.5817, allocations: 0 / 453.5 MB, free: 6.184 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.5819, allocations: 322.8 kB / 453.9 MB, free: 5.859 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001511/0.582, allocations: 40.3 kB / 453.9 MB, free: 5.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.5822, allocations: 79.38 kB / 454 MB, free: 5.727 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001734/0.5824, allocations: 47.98 kB / 454 MB, free: 5.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.483e-06/0.5824, allocations: 4 kB / 454 MB, free: 5.676 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004556/0.5829, allocations: 161.6 kB / 454.2 MB, free: 5.512 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.5829, allocations: 4 kB / 454.2 MB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.583, allocations: 12.11 kB / 454.2 MB, free: 5.496 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.583, allocations: 0 / 454.2 MB, free: 5.496 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.5832, allocations: 23.92 kB / 454.2 MB, free: 5.473 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.301e-05/0.5832, allocations: 4 kB / 454.2 MB, free: 5.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.5833, allocations: 8 kB / 454.2 MB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.5834, allocations: 11.98 kB / 454.2 MB, free: 5.449 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 () * 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.0001577/0.5835, allocations: 132 kB / 454.4 MB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.974e-05/0.5836, allocations: 7.906 kB / 454.4 MB, free: 5.305 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.545e-05/0.5836, allocations: 12.5 kB / 454.4 MB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.5837, allocations: 7.953 kB / 454.4 MB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.5837, allocations: 0 / 454.4 MB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.5837, allocations: 0 / 454.4 MB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008608/0.5846, allocations: 446.3 kB / 454.8 MB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.5846, allocations: 0 / 454.8 MB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.5847, allocations: 19.94 kB / 454.9 MB, free: 4.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.5847, allocations: 4 kB / 454.9 MB, free: 4.766 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.5847, allocations: 0 / 454.9 MB, free: 4.766 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.5848, allocations: 7.938 kB / 454.9 MB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.5848, allocations: 384 / 454.9 MB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005565/0.5853, allocations: 251.4 kB / 455.1 MB, free: 4.496 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.956e-05/0.5854, allocations: 85 kB / 455.2 MB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.335e-05/0.5855, allocations: 15.95 kB / 455.2 MB, free: 4.379 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.5857, allocations: 15.86 kB / 455.2 MB, free: 4.363 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.109e-05/0.5858, allocations: 8 kB / 455.2 MB, free: 4.355 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.536e-05/0.5858, allocations: 7.984 kB / 455.2 MB, free: 4.348 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.742e-05/0.5859, allocations: 87.28 kB / 455.3 MB, free: 4.262 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5859, allocations: 0 / 455.3 MB, free: 4.262 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003906/0.5863, allocations: 23.98 kB / 455.3 MB, free: 4.238 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) * 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.0009589/0.5873, allocations: 0.7926 MB / 456.1 MB, free: 3.422 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004519/0.5878, allocations: 117.1 kB / 456.3 MB, free: 3.309 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.5878, allocations: 0 / 456.3 MB, free: 3.309 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001931/0.588, allocations: 51.92 kB / 456.3 MB, free: 3.258 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.5883, allocations: 15.94 kB / 456.3 MB, free: 3.242 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.5904, allocations: 1.437 MB / 457.8 MB, free: 1.727 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.5908, allocations: 0.7004 MB / 458.5 MB, free: 1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.251e-05/0.5909, allocations: 23.44 kB / 458.5 MB, free: 0.9766 MB / 378.7 MB Notification: Performance of SimCode: time 1.413e-06/0.5909, allocations: 4 kB / 458.5 MB, free: 0.9727 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.413/3.004, allocations: 1.516 MB / 460 MB, free: 15.46 MB / 394.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