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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.549/2.549, allocations: 235.1 MB / 243 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.588e-05/2.584e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3855/0.3856, allocations: 54.85 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1469/0.5325, allocations: 80.05 MB / 438.2 MB, free: 14.78 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/0.5329, allocations: 67.95 kB / 438.2 MB, free: 14.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00658/0.5395, allocations: 1.442 MB / 439.7 MB, free: 13.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5395, allocations: 0 / 439.7 MB, free: 13.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.5395, allocations: 0 / 439.7 MB, free: 13.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.0007277/0.5403, allocations: 384.4 kB / 440 MB, free: 12.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.5403, allocations: 12.03 kB / 440.1 MB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.651e-05/0.5404, allocations: 11.86 kB / 440.1 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.5406, allocations: 167.1 kB / 440.2 MB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.864e-05/0.5406, allocations: 7.984 kB / 440.2 MB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.055e-05/0.5407, allocations: 8 kB / 440.2 MB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000139/0.5408, allocations: 36.12 kB / 440.3 MB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.541, allocations: 77.66 kB / 440.4 MB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.5411, allocations: 0 / 440.4 MB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.5411, allocations: 3.953 kB / 440.4 MB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.5411, allocations: 0 / 440.4 MB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007177/0.5418, allocations: 297.2 kB / 440.7 MB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002127/0.5421, allocations: 82.56 kB / 440.7 MB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.474e-05/0.5422, allocations: 36.8 kB / 440.8 MB, free: 12.03 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.123e-05/0.5422, allocations: 4 kB / 440.8 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002207/0.5425, allocations: 87.59 kB / 440.9 MB, free: 11.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.454e-06/0.5425, allocations: 3.938 kB / 440.9 MB, free: 11.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004063/0.5429, allocations: 133.7 kB / 441 MB, free: 11.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.543, allocations: 67.38 kB / 441.1 MB, free: 11.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.5431, allocations: 101.2 kB / 441.2 MB, free: 11.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.5431, allocations: 29.7 kB / 441.2 MB, free: 11.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.847e-05/0.5432, allocations: 158.8 kB / 441.3 MB, free: 11.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.761e-05/0.5433, allocations: 32 kB / 441.4 MB, free: 11.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.977e-06/0.5433, allocations: 0 / 441.4 MB, free: 11.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.5434, allocations: 318.8 kB / 441.7 MB, free: 11.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.355e-05/0.5435, allocations: 28.31 kB / 441.7 MB, free: 11.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.5437, allocations: 76.83 kB / 441.8 MB, free: 10.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001137/0.5438, allocations: 39.92 kB / 441.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.5438, allocations: 0 / 441.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003088/0.5441, allocations: 129.4 kB / 442 MB, free: 10.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.5442, allocations: 8 kB / 442 MB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.5442, allocations: 0 / 442 MB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.5442, allocations: 4 kB / 442 MB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.5444, allocations: 23.94 kB / 442 MB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.5445, allocations: 7.938 kB / 442 MB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.5446, allocations: 11.84 kB / 442 MB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.5446, allocations: 8 kB / 442 MB, free: 10.7 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.0001203/0.5447, allocations: 119.4 kB / 442.1 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003187/0.5451, allocations: 137.5 kB / 442.3 MB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.379e-05/0.5451, allocations: 7.906 kB / 442.3 MB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.165e-05/0.5452, allocations: 16.69 kB / 442.3 MB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.954e-06/0.5452, allocations: 4 kB / 442.3 MB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.5452, allocations: 0 / 442.3 MB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.5452, allocations: 0 / 442.3 MB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006846/0.5459, allocations: 387.1 kB / 442.7 MB, free: 9.992 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-06/0.5459, allocations: 4 kB / 442.7 MB, free: 9.988 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.979e-05/0.5461, allocations: 15.89 kB / 442.7 MB, free: 9.973 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.5461, allocations: 0 / 442.7 MB, free: 9.973 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.5461, allocations: 7.984 kB / 442.7 MB, free: 9.965 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.5461, allocations: 0 / 442.7 MB, free: 9.965 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.5461, allocations: 0 / 442.7 MB, free: 9.965 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003671/0.5465, allocations: 231.4 kB / 442.9 MB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.714e-05/0.5466, allocations: 88.95 kB / 443 MB, free: 9.617 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.433e-05/0.5466, allocations: 7.953 kB / 443 MB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/0.5468, allocations: 11.98 kB / 443 MB, free: 9.598 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.99e-05/0.5469, allocations: 7.984 kB / 443 MB, free: 9.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/0.5469, allocations: 8 kB / 443 MB, free: 9.582 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.115e-05/0.547, allocations: 87.28 kB / 443.1 MB, free: 9.496 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.547, allocations: 3.938 kB / 443.1 MB, free: 9.492 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003651/0.5474, allocations: 20.27 kB / 443.2 MB, free: 9.473 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.000775/0.5482, allocations: 0.7696 MB / 443.9 MB, free: 8.676 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002826/0.5485, allocations: 91.86 kB / 444 MB, free: 8.586 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.5485, allocations: 0 / 444 MB, free: 8.586 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.5486, allocations: 39.94 kB / 444.1 MB, free: 8.547 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002978/0.5489, allocations: 13.67 kB / 444.1 MB, free: 8.535 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007164/0.5497, allocations: 188 kB / 444.2 MB, free: 8.305 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.55, allocations: 0.6924 MB / 444.9 MB, free: 7.586 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.693e-05/0.5501, allocations: 27.42 kB / 445 MB, free: 7.559 MB / 378.7 MB Notification: Performance of SimCode: time 7.92e-07/0.5501, allocations: 0 / 445 MB, free: 7.559 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.574/3.124, allocations: 1.528 MB / 446.5 MB, free: 6.031 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