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.212/2.212, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000447/0.0004473, allocations: 12 kB / 314.4 MB, free: 9.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3314, allocations: 54.86 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002159/0.3336, allocations: 1.2 MB / 370.5 MB, free: 9.496 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.3347, allocations: 0.4899 MB / 371 MB, free: 9.004 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.234e-05/0.3348, allocations: 0 / 371 MB, free: 9.004 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.418e-05/0.3348, allocations: 3.938 kB / 371 MB, free: 9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.881e-05/0.3349, allocations: 15.97 kB / 371 MB, free: 8.984 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001971/0.3351, allocations: 27.91 kB / 371 MB, free: 8.957 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.3353, allocations: 51.88 kB / 371.1 MB, free: 8.906 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.648e-05/0.3354, allocations: 15.98 kB / 371.1 MB, free: 8.891 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.3355, allocations: 35.91 kB / 371.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.42e-05/0.3356, allocations: 31.83 kB / 371.1 MB, free: 8.824 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.912e-05/0.3357, allocations: 4 kB / 371.1 MB, free: 8.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.385e-05/0.3357, allocations: 4 kB / 371.1 MB, free: 8.816 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.145e-05/0.3357, allocations: 15.92 kB / 371.2 MB, free: 8.801 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.144e-05/0.3358, allocations: 41.69 kB / 371.2 MB, free: 8.754 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001049/0.3359, allocations: 47.91 kB / 371.2 MB, free: 8.707 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.3359, allocations: 0 / 371.2 MB, free: 8.707 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.248e-06/0.3359, allocations: 4 kB / 371.3 MB, free: 8.703 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.336, allocations: 3.938 kB / 371.3 MB, free: 8.699 MB / 298.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.0008274/0.3368, allocations: 392 kB / 371.6 MB, free: 8.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.3368, allocations: 8.031 kB / 371.6 MB, free: 8.262 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.742e-05/0.3369, allocations: 46.55 kB / 371.7 MB, free: 8.207 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.188e-05/0.337, allocations: 7.906 kB / 371.7 MB, free: 8.199 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001499/0.3371, allocations: 167 kB / 371.9 MB, free: 7.996 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/0.3372, allocations: 11.98 kB / 371.9 MB, free: 7.984 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.458e-05/0.3372, allocations: 4 kB / 371.9 MB, free: 7.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002854/0.3375, allocations: 93.58 kB / 372 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.3375, allocations: 0 / 372 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.92e-05/0.3375, allocations: 7.953 kB / 372 MB, free: 7.875 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.3376, allocations: 0 / 372 MB, free: 7.875 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002248/0.3378, allocations: 55.91 kB / 372 MB, free: 7.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007008/0.3385, allocations: 320.8 kB / 372.3 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002875/0.3388, allocations: 98.53 kB / 372.4 MB, free: 7.352 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.3389, allocations: 7.891 kB / 372.4 MB, free: 7.344 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000288/0.3392, allocations: 99.27 kB / 372.5 MB, free: 7.234 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.924e-06/0.3392, allocations: 0 / 372.5 MB, free: 7.234 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006737/0.3399, allocations: 197.7 kB / 372.7 MB, free: 7.035 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.3399, allocations: 63.39 kB / 372.8 MB, free: 6.961 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.3401, allocations: 117.9 kB / 372.9 MB, free: 6.836 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.994e-05/0.3401, allocations: 33.7 kB / 372.9 MB, free: 6.797 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.035e-05/0.3402, allocations: 154.8 kB / 373.1 MB, free: 6.645 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.698e-05/0.3403, allocations: 43.53 kB / 373.1 MB, free: 6.602 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.195e-05/0.3403, allocations: 4 kB / 373.1 MB, free: 6.598 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.3405, allocations: 314.8 kB / 373.5 MB, free: 6.281 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001594/0.3406, allocations: 44.36 kB / 373.5 MB, free: 6.238 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001849/0.3408, allocations: 75.38 kB / 373.6 MB, free: 6.148 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000181/0.341, allocations: 51.98 kB / 373.6 MB, free: 6.098 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.341, allocations: 0 / 373.6 MB, free: 6.098 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004494/0.3415, allocations: 161.5 kB / 373.8 MB, free: 5.934 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.3415, allocations: 4 kB / 373.8 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.3416, allocations: 7.984 kB / 373.8 MB, free: 5.922 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.3416, allocations: 8.156 kB / 373.8 MB, free: 5.914 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.3418, allocations: 23.92 kB / 373.8 MB, free: 5.891 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.3418, allocations: 0 / 373.8 MB, free: 5.891 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.3419, allocations: 11.98 kB / 373.8 MB, free: 5.879 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.3419, allocations: 8 kB / 373.8 MB, free: 5.871 MB / 298.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.0001408/0.3421, allocations: 128 kB / 374 MB, free: 5.738 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.051e-05/0.3421, allocations: 15.84 kB / 374 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.105e-05/0.3422, allocations: 8.5 kB / 374 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.3422, allocations: 8 kB / 374 MB, free: 5.703 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3422, allocations: 0 / 374 MB, free: 5.703 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.3422, allocations: 0 / 374 MB, free: 5.703 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007978/0.343, allocations: 446.2 kB / 374.4 MB, free: 5.211 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.343, allocations: 0 / 374.4 MB, free: 5.211 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.108e-05/0.3431, allocations: 11.98 kB / 374.4 MB, free: 5.199 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/0.3432, allocations: 4 kB / 374.4 MB, free: 5.195 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.3432, allocations: 4 kB / 374.5 MB, free: 5.191 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3432, allocations: 0 / 374.5 MB, free: 5.191 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3432, allocations: 0 / 374.5 MB, free: 5.191 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004943/0.3437, allocations: 255.3 kB / 374.7 MB, free: 4.926 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.116e-05/0.3438, allocations: 89.34 kB / 374.8 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.801e-05/0.3438, allocations: 11.92 kB / 374.8 MB, free: 4.809 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.344, allocations: 12 kB / 374.8 MB, free: 4.797 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.383e-05/0.3441, allocations: 7.984 kB / 374.8 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.847e-05/0.3441, allocations: 15.92 kB / 374.8 MB, free: 4.773 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.089e-05/0.3442, allocations: 87.28 kB / 374.9 MB, free: 4.688 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3442, allocations: 0 / 374.9 MB, free: 4.688 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003361/0.3446, allocations: 20 kB / 374.9 MB, free: 4.668 MB / 298.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.0008463/0.3454, allocations: 0.802 MB / 375.7 MB, free: 3.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003927/0.3458, allocations: 99.89 kB / 375.8 MB, free: 3.742 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3458, allocations: 4.312 kB / 375.8 MB, free: 3.738 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001912/0.346, allocations: 60.78 kB / 375.9 MB, free: 3.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002524/0.3463, allocations: 11.98 kB / 375.9 MB, free: 3.668 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/0.3479, allocations: 0.6896 MB / 376.6 MB, free: 2.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.3482, allocations: 0.6926 MB / 377.3 MB, free: 2.191 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.128e-05/0.3483, allocations: 27.42 kB / 377.3 MB, free: 2.164 MB / 298.7 MB Notification: Performance of SimCode: time 9.21e-07/0.3483, allocations: 0 / 377.3 MB, free: 2.164 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.144/2.492, allocations: 1.529 MB / 378.9 MB, free: 0.6406 MB / 298.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat failed! " Variables in the reference:time,firstOrderHold.c,firstOrderHold.firstTrigger,firstOrderHold.pre_uSample,firstOrderHold.tSample,firstOrderHold.uSample,zeroOrderHold.firstTrigger,zeroOrderHold.ySample Variables in the result:firstOrderHold.c,firstOrderHold.firstTrigger,firstOrderHold.pre_uSample,firstOrderHold.samplePeriod,firstOrderHold.sampleTrigger,firstOrderHold.startTime,firstOrderHold.tSample,firstOrderHold.u,firstOrderHold.uSample,firstOrderHold.y,period,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time,zeroOrderHold.firstTrigger,zeroOrderHold.samplePeriod,zeroOrderHold.sampleTrigger,zeroOrderHold.startTime,zeroOrderHold.u,zeroOrderHold.y,zeroOrderHold.ySample