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.001332/0.001332, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001564/0.001564, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.518/1.518, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 47.42 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1144, allocations: 49.45 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.003562/0.118, allocations: 1.59 MB / 351.8 MB, free: 2.703 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.1191, allocations: 0.5064 MB / 352.3 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.1193, allocations: 0 / 352.3 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.485e-05/0.1194, allocations: 7.938 kB / 352.3 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001959/0.1196, allocations: 15.86 kB / 352.3 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000383/0.12, allocations: 57.7 kB / 352.3 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001397/0.1202, allocations: 47.8 kB / 352.4 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.1203, allocations: 31.89 kB / 352.4 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.1204, allocations: 31.8 kB / 352.5 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.861e-05/0.1205, allocations: 19.86 kB / 352.5 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.342e-05/0.1205, allocations: 4 kB / 352.5 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.801e-05/0.1206, allocations: 4 kB / 352.5 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.316e-05/0.1206, allocations: 15.94 kB / 352.5 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.654e-05/0.1207, allocations: 35.78 kB / 352.5 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.1209, allocations: 63.73 kB / 352.6 MB, free: 1.863 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.1209, allocations: 0 / 352.6 MB, free: 1.863 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1209, allocations: 0 / 352.6 MB, free: 1.863 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.469e-05/0.1209, allocations: 0 / 352.6 MB, free: 1.863 MB / 286.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.0006094/0.1215, allocations: 387.3 kB / 353 MB, free: 1.438 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.1216, allocations: 8.031 kB / 353 MB, free: 1.43 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.13e-05/0.1216, allocations: 34.75 kB / 353 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.671e-05/0.1217, allocations: 12.84 kB / 353 MB, free: 1.375 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002544/0.1219, allocations: 204.5 kB / 353.2 MB, free: 1.137 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.1219, allocations: 4.375 kB / 353.2 MB, free: 1.133 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.063e-05/0.122, allocations: 7.938 kB / 353.2 MB, free: 1.125 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003245/0.1223, allocations: 130.7 kB / 353.4 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1223, allocations: 0 / 353.4 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.1223, allocations: 0 / 353.4 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.1223, allocations: 4 kB / 353.4 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.801e-05/0.1225, allocations: 27.92 kB / 353.4 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004117/0.1229, allocations: 295.3 kB / 353.7 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001443/0.123, allocations: 86.36 kB / 353.8 MB, free: 484 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.168e-05/0.1231, allocations: 55.55 kB / 353.8 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.1232, allocations: 0 / 353.8 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.1232, allocations: 38.5 kB / 353.9 MB, free: 368 kB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.072e-06/0.1232, allocations: 0 / 353.9 MB, free: 368 kB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003375/0.1235, allocations: 105.8 kB / 354 MB, free: 256 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.1237, allocations: 132.5 kB / 354.1 MB, free: 92 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001971/0.1239, allocations: 147.3 kB / 354.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.1239, allocations: 25.7 kB / 354.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.937e-05/0.124, allocations: 96.11 kB / 354.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.794e-05/0.124, allocations: 7.906 kB / 354.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.38e-05/0.1241, allocations: 25.94 kB / 354.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1242, allocations: 318.8 kB / 354.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.392e-05/0.1243, allocations: 15.98 kB / 354.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.46e-05/0.1244, allocations: 40.28 kB / 354.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001201/0.1245, allocations: 64.22 kB / 354.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1245, allocations: 0 / 354.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000174/0.1247, allocations: 85.45 kB / 354.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.1247, allocations: 8.156 kB / 354.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.1247, allocations: 0 / 354.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.1248, allocations: 4 kB / 354.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.217e-05/0.1249, allocations: 8 kB / 354.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.638e-05/0.1249, allocations: 11.88 kB / 354.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.292e-05/0.1249, allocations: 8.109 kB / 354.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.125, allocations: 8 kB / 355 MB, free: 15.16 MB / 302.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.0001081/0.1251, allocations: 125.7 kB / 355.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.398e-05/0.1252, allocations: 61.53 kB / 355.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.438e-05/0.1252, allocations: 11.88 kB / 355.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1252, allocations: 0 / 355.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/0.1253, allocations: 7.938 kB / 355.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.1253, allocations: 3.984 kB / 355.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002837/0.1256, allocations: 173.7 kB / 355.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1256, allocations: 0 / 355.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.218e-05/0.1257, allocations: 15.98 kB / 355.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1257, allocations: 0 / 355.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.1257, allocations: 4 kB / 355.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.1257, allocations: 0 / 355.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.1257, allocations: 8 kB / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/0.1259, allocations: 194 kB / 355.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.756e-05/0.126, allocations: 101 kB / 355.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.126, allocations: 0 / 355.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.408e-05/0.1261, allocations: 8 kB / 355.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.256e-05/0.1262, allocations: 7.922 kB / 355.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/0.1262, allocations: 4 kB / 355.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.703e-05/0.1263, allocations: 112.9 kB / 355.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1263, allocations: 0 / 355.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002386/0.1265, allocations: 8 kB / 355.8 MB, free: 14.22 MB / 302.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.0006227/0.1272, allocations: 0.7342 MB / 356.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002477/0.1274, allocations: 52.11 kB / 356.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1274, allocations: 4.062 kB / 356.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.138e-05/0.1275, allocations: 19.92 kB / 356.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004344/0.1279, allocations: 27.95 kB / 356.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.1296, allocations: 1.461 MB / 358.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.1299, allocations: 0.6924 MB / 358.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.285e-05/0.13, allocations: 4 kB / 358.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.207e-05/0.13, allocations: 27.36 kB / 358.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.13, allocations: 0 / 358.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01962/0.1497, allocations: 1.817 MB / 360.6 MB, free: 9.285 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.159/8.308, allocations: 15.73 kB / 360.6 MB, free: 9.27 MB / 302.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