Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002366/0.002366, allocations: 110.2 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002622/0.002622, allocations: 197.3 kB / 18.01 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 47.86 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3177, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.005921/0.3236, allocations: 1.612 MB / 401.9 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001738/0.3254, allocations: 0.4924 MB / 402.3 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002225/0.3257, allocations: 7.938 kB / 402.4 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.428e-05/0.3258, allocations: 7.938 kB / 402.4 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002778/0.3262, allocations: 11.86 kB / 402.4 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000651/0.3268, allocations: 55.81 kB / 402.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000308/0.3272, allocations: 47.86 kB / 402.5 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.3274, allocations: 19.92 kB / 402.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.3276, allocations: 27.91 kB / 402.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.3278, allocations: 27.8 kB / 402.5 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.89e-05/0.3278, allocations: 8 kB / 402.6 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.204e-05/0.3278, allocations: 4 kB / 402.6 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.234e-05/0.3279, allocations: 15.92 kB / 402.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.553e-05/0.328, allocations: 27.81 kB / 402.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002733/0.3283, allocations: 62.69 kB / 402.7 MB, free: 6.387 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.3283, allocations: 0 / 402.7 MB, free: 6.387 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.3284, allocations: 0 / 402.7 MB, free: 6.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.3284, allocations: 0 / 402.7 MB, free: 6.387 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0009092/0.3293, allocations: 387 kB / 403 MB, free: 5.961 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.989e-05/0.3294, allocations: 12.03 kB / 403.1 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.247e-05/0.3295, allocations: 42.69 kB / 403.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.554e-05/0.3295, allocations: 12.84 kB / 403.1 MB, free: 5.887 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005308/0.3301, allocations: 210.4 kB / 403.3 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.3301, allocations: 8.375 kB / 403.3 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.439e-05/0.3302, allocations: 11.94 kB / 403.3 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005227/0.3307, allocations: 126.8 kB / 403.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.3307, allocations: 0 / 403.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.3308, allocations: 0 / 403.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.3308, allocations: 0 / 403.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001747/0.331, allocations: 31.91 kB / 403.5 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006481/0.3316, allocations: 287.4 kB / 403.8 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002592/0.3319, allocations: 94.36 kB / 403.9 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.3321, allocations: 47.55 kB / 403.9 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.659e-05/0.3321, allocations: 11.97 kB / 403.9 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.696e-05/0.3322, allocations: 42.44 kB / 404 MB, free: 4.855 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 3.036e-06/0.3322, allocations: 0 / 404 MB, free: 4.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005644/0.3328, allocations: 97.5 kB / 404.1 MB, free: 4.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001583/0.333, allocations: 136.5 kB / 404.2 MB, free: 4.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002624/0.3333, allocations: 148.1 kB / 404.3 MB, free: 4.438 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.3333, allocations: 25.7 kB / 404.4 MB, free: 4.406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.3334, allocations: 104.1 kB / 404.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.3335, allocations: 7.891 kB / 404.5 MB, free: 4.293 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.234e-05/0.3336, allocations: 17.72 kB / 404.5 MB, free: 4.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000237/0.3338, allocations: 322.8 kB / 404.8 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.923e-05/0.3339, allocations: 12 kB / 404.8 MB, free: 3.934 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.3341, allocations: 44.28 kB / 404.9 MB, free: 3.875 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002295/0.3343, allocations: 60.22 kB / 404.9 MB, free: 3.801 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.3344, allocations: 0 / 404.9 MB, free: 3.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003185/0.3347, allocations: 85.5 kB / 405 MB, free: 3.711 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.3347, allocations: 8 kB / 405 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.3347, allocations: 0 / 405 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.3348, allocations: 0 / 405 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.3349, allocations: 19.92 kB / 405 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.335, allocations: 3.938 kB / 405 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.006e-05/0.3351, allocations: 4 kB / 405 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.207e-05/0.3351, allocations: 7.984 kB / 405 MB, free: 3.668 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000177/0.3353, allocations: 125.9 kB / 405.2 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/0.3355, allocations: 61.58 kB / 405.2 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.788e-05/0.3356, allocations: 7.875 kB / 405.2 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.3356, allocations: 4 kB / 405.2 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.3356, allocations: 3.938 kB / 405.2 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.689e-06/0.3357, allocations: 4 kB / 405.2 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003868/0.3361, allocations: 177.6 kB / 405.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3361, allocations: 0 / 405.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.3362, allocations: 24.05 kB / 405.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.3362, allocations: 0 / 405.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.3362, allocations: 0 / 405.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.314e-05/0.3363, allocations: 8.125 kB / 405.4 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/0.3363, allocations: 3.938 kB / 405.5 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003904/0.3367, allocations: 202 kB / 405.6 MB, free: 2.965 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001277/0.3368, allocations: 92.98 kB / 405.7 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.3369, allocations: 11.98 kB / 405.8 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.337, allocations: 0 / 405.8 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.227e-05/0.3371, allocations: 7.938 kB / 405.8 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.3371, allocations: 0 / 405.8 MB, free: 2.836 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001519/0.3373, allocations: 114.2 kB / 405.9 MB, free: 2.727 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3373, allocations: 0 / 405.9 MB, free: 2.727 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004667/0.3378, allocations: 16 kB / 405.9 MB, free: 2.711 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009598/0.3388, allocations: 0.7304 MB / 406.6 MB, free: 1.945 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003019/0.3391, allocations: 47.84 kB / 406.7 MB, free: 1.898 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.3391, allocations: 0 / 406.7 MB, free: 1.898 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.3392, allocations: 15.92 kB / 406.7 MB, free: 1.883 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006705/0.3399, allocations: 34.67 kB / 406.7 MB, free: 1.852 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002556/0.3425, allocations: 1.45 MB / 408.2 MB, free: 284 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005812/0.3431, allocations: 0.7 MB / 408.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.618e-05/0.3432, allocations: 7.984 kB / 408.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.186e-05/0.3433, allocations: 23.44 kB / 408.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of SimCode: time 1.303e-06/0.3433, allocations: 7.875 kB / 408.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03383/0.3771, allocations: 1.858 MB / 410.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.259/8.637, allocations: 7.797 kB / 410.8 MB, free: 13.74 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:time,hold1.u,hold1.y,sample1.y,shiftSample1.u,shiftSample1.y