Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00186/0.00186, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002188/0.002188, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.593/1.593, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2951/0.2969, allocations: 50.53 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.003218/0.3002, allocations: 1.622 MB / 410.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.3013, allocations: 0.5608 MB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.646e-05/0.3014, allocations: 0 / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.799e-05/0.3015, allocations: 11.88 kB / 411 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001488/0.3016, allocations: 15.92 kB / 411 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003531/0.302, allocations: 67.73 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001279/0.3021, allocations: 47.86 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.3023, allocations: 23.98 kB / 411.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.3024, allocations: 35.78 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.847e-05/0.3025, allocations: 19.86 kB / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.861e-05/0.3025, allocations: 8 kB / 411.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.77e-05/0.3026, allocations: 12 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.415e-05/0.3026, allocations: 15.92 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.495e-05/0.3027, allocations: 31.75 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001819/0.3029, allocations: 70.66 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3029, allocations: 0 / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3029, allocations: 0 / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.3029, allocations: 0 / 411.3 MB, free: 15 MB / 334.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.0005931/0.3035, allocations: 391 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.3036, allocations: 12.03 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.122e-05/0.3036, allocations: 42.69 kB / 411.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001571/0.3038, allocations: 16.88 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003013/0.3041, allocations: 208.7 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.083e-06/0.3041, allocations: 4.312 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.3041, allocations: 11.94 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.3044, allocations: 130.7 kB / 412.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.3045, allocations: 0 / 412.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.3045, allocations: 0 / 412.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.3045, allocations: 7.938 kB / 412.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.835e-05/0.3046, allocations: 23.98 kB / 412.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003888/0.305, allocations: 287.4 kB / 412.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001529/0.3051, allocations: 98.42 kB / 412.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.476e-05/0.3052, allocations: 47.48 kB / 412.6 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.3053, allocations: 7.984 kB / 412.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.3053, allocations: 38.5 kB / 412.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.263e-06/0.3053, allocations: 0 / 412.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003215/0.3056, allocations: 105.5 kB / 412.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.836e-05/0.3057, allocations: 132.5 kB / 412.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001628/0.3059, allocations: 153.9 kB / 413 MB, free: 13.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.3059, allocations: 29.7 kB / 413 MB, free: 13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.578e-05/0.306, allocations: 88.14 kB / 413.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.174e-05/0.306, allocations: 11.94 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.834e-05/0.3061, allocations: 21.67 kB / 413.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3062, allocations: 322.8 kB / 413.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.865e-05/0.3063, allocations: 8 kB / 413.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.433e-05/0.3063, allocations: 44.28 kB / 413.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.3065, allocations: 64.16 kB / 413.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3065, allocations: 4 kB / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001609/0.3067, allocations: 77.56 kB / 413.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3067, allocations: 10.66 kB / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3067, allocations: 0 / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.3067, allocations: 4 kB / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.352e-05/0.3068, allocations: 15.92 kB / 413.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.3068, allocations: 3.938 kB / 413.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.009e-05/0.3069, allocations: 8.156 kB / 413.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.188e-06/0.3069, allocations: 8 kB / 413.7 MB, free: 12.27 MB / 334.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.0001059/0.307, allocations: 121.8 kB / 413.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.626e-05/0.3071, allocations: 61.58 kB / 413.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.046e-05/0.3072, allocations: 19.77 kB / 413.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3072, allocations: 0 / 413.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.3072, allocations: 3.938 kB / 413.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3072, allocations: 4 kB / 413.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000215/0.3074, allocations: 181.6 kB / 414.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3074, allocations: 4.062 kB / 414.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.672e-05/0.3075, allocations: 15.98 kB / 414.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3075, allocations: 0 / 414.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.3075, allocations: 4 kB / 414.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3075, allocations: 0 / 414.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.3075, allocations: 3.938 kB / 414.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002357/0.3078, allocations: 210.2 kB / 414.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.446e-05/0.3079, allocations: 93.05 kB / 414.4 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.3079, allocations: 8 kB / 414.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.779e-05/0.308, allocations: 7.984 kB / 414.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.699e-05/0.308, allocations: 3.938 kB / 414.4 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-06/0.308, allocations: 4 kB / 414.4 MB, free: 11.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.421e-05/0.3081, allocations: 116.4 kB / 414.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3082, allocations: 4 kB / 414.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002381/0.3084, allocations: 4 kB / 414.5 MB, free: 11.3 MB / 334.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.0005772/0.309, allocations: 0.7266 MB / 415.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001791/0.3092, allocations: 51.84 kB / 415.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3092, allocations: 0 / 415.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.448e-05/0.3092, allocations: 11.92 kB / 415.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.3096, allocations: 40.12 kB / 415.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.3113, allocations: 1.456 MB / 416.8 MB, free: 8.863 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.3116, allocations: 0.7079 MB / 417.5 MB, free: 8.129 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.95e-05/0.3117, allocations: 8 kB / 417.5 MB, free: 8.121 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.963e-05/0.3117, allocations: 23.42 kB / 417.6 MB, free: 8.098 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3117, allocations: 3.938 kB / 417.6 MB, free: 8.094 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02424/0.336, allocations: 1.872 MB / 419.4 MB, free: 6.316 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.625/8.961, allocations: 11.31 kB / 419.4 MB, free: 6.309 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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