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.001429/0.001429, allocations: 114.2 kB / 17.06 MB, free: 5.996 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.001467/0.001467, allocations: 194.9 kB / 18.01 MB, free: 5.074 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.552/1.552, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 43.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.302/0.3034, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.004589/0.308, allocations: 1.613 MB / 401.9 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.3094, allocations: 0.4934 MB / 402.3 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001674/0.3096, allocations: 3.938 kB / 402.3 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.163e-05/0.3097, allocations: 7.922 kB / 402.4 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002197/0.31, allocations: 19.86 kB / 402.4 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003812/0.3104, allocations: 47.83 kB / 402.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.3105, allocations: 55.84 kB / 402.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.3106, allocations: 15.98 kB / 402.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.851e-05/0.3107, allocations: 35.78 kB / 402.5 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.657e-05/0.3108, allocations: 23.86 kB / 402.6 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.649e-05/0.3108, allocations: 4 kB / 402.6 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.524e-05/0.3109, allocations: 8 kB / 402.6 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.791e-05/0.3109, allocations: 15.92 kB / 402.6 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.192e-05/0.311, allocations: 23.81 kB / 402.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001777/0.3112, allocations: 62.69 kB / 402.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.3112, allocations: 0 / 402.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3112, allocations: 0 / 402.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.3112, allocations: 4 kB / 402.7 MB, free: 6.379 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.0005227/0.3117, allocations: 387 kB / 403 MB, free: 5.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.3118, allocations: 8.031 kB / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.127e-05/0.3119, allocations: 38.75 kB / 403.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.984e-05/0.3119, allocations: 20.78 kB / 403.1 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.3122, allocations: 210.6 kB / 403.3 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.3122, allocations: 384 / 403.3 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.3123, allocations: 11.94 kB / 403.3 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.3126, allocations: 130.7 kB / 403.5 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.3126, allocations: 3.938 kB / 403.5 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.3126, allocations: 4 kB / 403.5 MB, free: 5.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.3126, allocations: 0 / 403.5 MB, free: 5.465 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.072e-05/0.3127, allocations: 31.91 kB / 403.5 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003713/0.3131, allocations: 279.5 kB / 403.8 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.3133, allocations: 98.42 kB / 403.9 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.739e-05/0.3133, allocations: 47.48 kB / 403.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.3134, allocations: 7.938 kB / 403.9 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.3134, allocations: 34.55 kB / 404 MB, free: 4.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.3134, allocations: 4 kB / 404 MB, free: 4.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003021/0.3137, allocations: 97.5 kB / 404.1 MB, free: 4.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.118e-05/0.3138, allocations: 136.5 kB / 404.2 MB, free: 4.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.314, allocations: 147.6 kB / 404.3 MB, free: 4.438 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.314, allocations: 34.14 kB / 404.4 MB, free: 4.398 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.168e-05/0.314, allocations: 92.09 kB / 404.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.3141, allocations: 15.88 kB / 404.5 MB, free: 4.289 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-05/0.3141, allocations: 17.72 kB / 404.5 MB, free: 4.266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.3142, allocations: 322.8 kB / 404.8 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.979e-05/0.3143, allocations: 8 kB / 404.8 MB, free: 3.934 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.884e-05/0.3144, allocations: 48.22 kB / 404.9 MB, free: 3.871 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001048/0.3145, allocations: 60.22 kB / 404.9 MB, free: 3.797 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3145, allocations: 0 / 404.9 MB, free: 3.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001674/0.3147, allocations: 85.56 kB / 405 MB, free: 3.707 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.3147, allocations: 4 kB / 405 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3147, allocations: 4 kB / 405 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.3147, allocations: 0 / 405 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.838e-05/0.3148, allocations: 19.92 kB / 405 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.3148, allocations: 3.938 kB / 405 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.782e-05/0.3149, allocations: 4 kB / 405 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.3149, allocations: 128 / 405 MB, free: 3.672 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.0001147/0.315, allocations: 130 kB / 405.2 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.966e-05/0.3151, allocations: 57.58 kB / 405.2 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.008e-05/0.3152, allocations: 15.88 kB / 405.2 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.862e-06/0.3152, allocations: 4 kB / 405.2 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.3152, allocations: 3.938 kB / 405.2 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3152, allocations: 0 / 405.2 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002012/0.3154, allocations: 177.6 kB / 405.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3154, allocations: 4 kB / 405.4 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.798e-05/0.3155, allocations: 12.05 kB / 405.4 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.219e-06/0.3155, allocations: 8 kB / 405.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.288e-06/0.3155, allocations: 0 / 405.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.3155, allocations: 7.875 kB / 405.4 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.3156, allocations: 7.938 kB / 405.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002206/0.3158, allocations: 194 kB / 405.6 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.483e-05/0.3159, allocations: 93.05 kB / 405.7 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.3159, allocations: 4 kB / 405.7 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.717e-05/0.316, allocations: 7.984 kB / 405.7 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.957e-05/0.316, allocations: 3.938 kB / 405.7 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-06/0.316, allocations: 4 kB / 405.8 MB, free: 2.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.37e-05/0.3161, allocations: 115.2 kB / 405.9 MB, free: 2.727 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.537e-06/0.3161, allocations: 0 / 405.9 MB, free: 2.727 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002414/0.3164, allocations: 15.94 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.0005594/0.3169, allocations: 0.7299 MB / 406.6 MB, free: 1.949 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001692/0.3171, allocations: 55.78 kB / 406.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3171, allocations: 0 / 406.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.093e-05/0.3172, allocations: 8 kB / 406.7 MB, free: 1.887 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00039/0.3176, allocations: 32.02 kB / 406.7 MB, free: 1.855 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.3191, allocations: 1.462 MB / 408.2 MB, free: 276 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002864/0.3194, allocations: 0.6961 MB / 408.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.307e-05/0.3194, allocations: 16.03 kB / 408.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.198e-05/0.3195, allocations: 23.44 kB / 408.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3195, allocations: 0 / 408.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02091/0.3404, allocations: 1.854 MB / 410.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.19/8.53, allocations: 11.86 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