Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002093/0.002101, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002514/0.002515, allocations: 202 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.534/1.534, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001476, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3996/0.4011, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.002615/0.4037, allocations: 1.596 MB / 410.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.4048, allocations: 0.5493 MB / 410.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.885e-05/0.4049, allocations: 3.938 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.583e-05/0.4049, allocations: 7.938 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000136/0.4051, allocations: 15.86 kB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002996/0.4054, allocations: 51.83 kB / 411 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.4055, allocations: 55.78 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.729e-05/0.4056, allocations: 20.17 kB / 411.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.4057, allocations: 27.86 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.195e-05/0.4058, allocations: 19.86 kB / 411.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.735e-05/0.4058, allocations: 4 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.238e-05/0.4059, allocations: 4 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.241e-05/0.4059, allocations: 19.91 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.707e-05/0.406, allocations: 27.81 kB / 411.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001523/0.4061, allocations: 62.69 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.4062, allocations: 4 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4062, allocations: 0 / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.4062, allocations: 0 / 411.2 MB, free: 15.07 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000545/0.4067, allocations: 387 kB / 411.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.4068, allocations: 8.031 kB / 411.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.022e-05/0.4068, allocations: 34.75 kB / 411.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.407, allocations: 16.88 kB / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.4072, allocations: 212.1 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.4073, allocations: 12.11 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.4073, allocations: 4 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002752/0.4076, allocations: 109.9 kB / 412 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.4076, allocations: 8 kB / 412 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-06/0.4076, allocations: 4 kB / 412 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.4076, allocations: 0 / 412 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.37e-05/0.4077, allocations: 27.86 kB / 412 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003065/0.408, allocations: 278.6 kB / 412.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001147/0.4081, allocations: 67.84 kB / 412.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.264e-05/0.4082, allocations: 34.56 kB / 412.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.4082, allocations: 0 / 412.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.4083, allocations: 46.5 kB / 412.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.4083, allocations: 0 / 412.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002729/0.4086, allocations: 81.56 kB / 412.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.4086, allocations: 102.8 kB / 412.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.4088, allocations: 154.1 kB / 412.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.4088, allocations: 33.64 kB / 412.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.751e-05/0.4089, allocations: 88.14 kB / 412.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.472e-05/0.4089, allocations: 4 kB / 412.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.673e-05/0.4089, allocations: 21.66 kB / 412.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.409, allocations: 314.8 kB / 413.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.558e-05/0.4091, allocations: 15.92 kB / 413.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.283e-05/0.4092, allocations: 39.42 kB / 413.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.483e-05/0.4093, allocations: 43.36 kB / 413.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4093, allocations: 0 / 413.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001437/0.4094, allocations: 69.62 kB / 413.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.4094, allocations: 10.81 kB / 413.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.4095, allocations: 0 / 413.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.4095, allocations: 0 / 413.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.339e-05/0.4095, allocations: 11.98 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.4096, allocations: 3.938 kB / 413.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.144e-05/0.4096, allocations: 4 kB / 413.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.4096, allocations: 4.094 kB / 413.4 MB, free: 12.55 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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 8.561e-05/0.4097, allocations: 129.8 kB / 413.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.578e-05/0.4098, allocations: 53.59 kB / 413.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.457e-05/0.4098, allocations: 15.86 kB / 413.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.4099, allocations: 4 kB / 413.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.4099, allocations: 7.938 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.4099, allocations: 0 / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001703/0.41, allocations: 173.6 kB / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4101, allocations: 0 / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.653e-05/0.4101, allocations: 15.92 kB / 413.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.4101, allocations: 0 / 413.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.4102, allocations: 4.062 kB / 413.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.4102, allocations: 4 kB / 413.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.4102, allocations: 3.938 kB / 413.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001854/0.4104, allocations: 173.2 kB / 414 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.183e-05/0.4104, allocations: 93.05 kB / 414.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.4105, allocations: 15.92 kB / 414.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.075e-05/0.4105, allocations: 0 / 414.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.988e-05/0.4106, allocations: 11.88 kB / 414.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-06/0.4106, allocations: 0 / 414.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.091e-05/0.4107, allocations: 118.6 kB / 414.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4107, allocations: 0 / 414.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002308/0.4109, allocations: 8 kB / 414.2 MB, free: 11.63 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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.0004811/0.4114, allocations: 0.7063 MB / 414.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001407/0.4115, allocations: 31.91 kB / 415 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4116, allocations: 4.25 kB / 415 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.999e-05/0.4116, allocations: 11.94 kB / 415 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.412, allocations: 38.17 kB / 415 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.4134, allocations: 1.395 MB / 416.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.4137, allocations: 0.6885 MB / 417.1 MB, free: 8.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.815e-05/0.4138, allocations: 8 kB / 417.1 MB, free: 8.582 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.788e-05/0.4138, allocations: 19.42 kB / 417.1 MB, free: 8.562 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4138, allocations: 0 / 417.1 MB, free: 8.562 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01899/0.4328, allocations: 1.74 MB / 418.9 MB, free: 6.934 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.276/8.709, allocations: 15.55 kB / 418.9 MB, free: 6.922 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches