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.001446/0.001446, allocations: 122.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.001624/0.001625, 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.494/1.494, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3584/0.3602, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.003051/0.3633, allocations: 1.593 MB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001156/0.3645, allocations: 0.5415 MB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.587e-05/0.3646, allocations: 3.938 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.606e-05/0.3647, allocations: 3.938 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000139/0.3648, allocations: 23.84 kB / 410.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003243/0.3651, allocations: 55.83 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.3653, allocations: 51.78 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.184e-05/0.3654, allocations: 12.19 kB / 411 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.3655, allocations: 39.78 kB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.684e-05/0.3656, allocations: 23.86 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.3656, allocations: 0 / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.519e-05/0.3656, allocations: 8 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.497e-05/0.3657, allocations: 15.92 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.869e-05/0.3657, allocations: 23.81 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.3659, allocations: 62.69 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3659, allocations: 4 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3659, allocations: 0 / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.3659, allocations: 0 / 411.2 MB, free: 15.06 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.000603/0.3665, allocations: 395 kB / 411.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.3666, allocations: 8.031 kB / 411.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.23e-05/0.3666, allocations: 30.75 kB / 411.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.3668, allocations: 20.88 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/0.367, allocations: 204.7 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/0.3671, allocations: 8.125 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.083e-05/0.3671, allocations: 4 kB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002666/0.3674, allocations: 113.9 kB / 412 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.3674, allocations: 4 kB / 412 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.295e-06/0.3674, allocations: 0 / 412 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.333e-06/0.3674, allocations: 4 kB / 412 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.375e-05/0.3675, allocations: 27.91 kB / 412 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003434/0.3678, allocations: 278.6 kB / 412.3 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001174/0.368, allocations: 71.78 kB / 412.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.969e-05/0.3681, allocations: 30.64 kB / 412.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.3681, allocations: 3.984 kB / 412.4 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.3681, allocations: 42.48 kB / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.3681, allocations: 0 / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003086/0.3684, allocations: 85.56 kB / 412.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/0.3686, allocations: 106.8 kB / 412.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.3687, allocations: 153.1 kB / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.591e-05/0.3688, allocations: 37.64 kB / 412.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.626e-05/0.3689, allocations: 84.14 kB / 412.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.287e-05/0.3689, allocations: 0 / 412.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.049e-05/0.369, allocations: 29.66 kB / 412.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.3691, allocations: 314.8 kB / 413.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.397e-05/0.3692, allocations: 11.92 kB / 413.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.748e-05/0.3692, allocations: 35.44 kB / 413.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.709e-05/0.3693, allocations: 47.36 kB / 413.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3693, allocations: 0 / 413.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001349/0.3695, allocations: 69.61 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.3695, allocations: 4 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.3695, allocations: 3.938 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.3695, allocations: 4 kB / 413.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.177e-05/0.3696, allocations: 11.98 kB / 413.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.3696, allocations: 3.938 kB / 413.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.378e-05/0.3697, allocations: 8 kB / 413.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.3697, allocations: 0 / 413.4 MB, free: 12.54 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 9.869e-05/0.3698, allocations: 129.9 kB / 413.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.107e-05/0.3699, allocations: 49.61 kB / 413.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.01e-05/0.3699, allocations: 15.86 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.3699, allocations: 0 / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.37, allocations: 3.938 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-06/0.37, allocations: 4 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002289/0.3702, allocations: 173.6 kB / 413.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.269e-06/0.3702, allocations: 4 kB / 413.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.914e-05/0.3703, allocations: 11.92 kB / 413.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3703, allocations: 8.062 kB / 413.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.3703, allocations: 0 / 413.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3703, allocations: 0 / 413.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.3703, allocations: 7.938 kB / 413.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001965/0.3705, allocations: 173.2 kB / 414 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.463e-05/0.3706, allocations: 97.05 kB / 414.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.3706, allocations: 0 / 414.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.369e-05/0.3707, allocations: 15.92 kB / 414.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.19e-05/0.3708, allocations: 3.938 kB / 414.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.3708, allocations: 4 kB / 414.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.434e-05/0.3709, allocations: 112.3 kB / 414.2 MB, free: 11.63 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3709, allocations: 4 kB / 414.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002286/0.3711, allocations: 4 kB / 414.2 MB, free: 11.62 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.0005102/0.3716, allocations: 0.7024 MB / 414.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001507/0.3718, allocations: 40.09 kB / 415 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3718, allocations: 4.062 kB / 415 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.823e-05/0.3718, allocations: 11.94 kB / 415 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003688/0.3722, allocations: 27.94 kB / 415 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.3737, allocations: 1.398 MB / 416.4 MB, free: 9.301 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.3741, allocations: 0.6963 MB / 417.1 MB, free: 8.578 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.943e-05/0.3741, allocations: 8.219 kB / 417.1 MB, free: 8.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.911e-05/0.3742, allocations: 19.44 kB / 417.1 MB, free: 8.551 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3742, allocations: 0 / 417.1 MB, free: 8.551 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02315/0.3974, allocations: 1.743 MB / 418.9 MB, free: 6.922 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.301/8.698, allocations: 13.95 kB / 418.9 MB, free: 6.914 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.1.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