Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001356/0.001356, allocations: 116.1 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001416, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2731, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003441/0.2766, allocations: 1.89 MB / 410.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002159/0.2788, allocations: 1.282 MB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.2789, allocations: 7.938 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003196/0.2793, allocations: 67.66 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003677/0.2797, allocations: 139.4 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006324/0.2803, allocations: 223.3 kB / 412.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002627/0.2806, allocations: 175.5 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.2807, allocations: 37.52 kB / 412.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001146/0.2808, allocations: 71.7 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001259/0.281, allocations: 75.69 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.281, allocations: 12 kB / 412.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001587/0.2812, allocations: 75.88 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.288e-05/0.2813, allocations: 43.84 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.976e-05/0.2814, allocations: 87.41 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003464/0.2817, allocations: 234 kB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.2817, allocations: 7.922 kB / 413.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2817, allocations: 0 / 413.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.2818, allocations: 4 kB / 413.2 MB, free: 13.12 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007688/0.2825, allocations: 0.5464 MB / 413.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.2826, allocations: 8.031 kB / 413.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.182e-05/0.2826, allocations: 38.75 kB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.453e-05/0.2827, allocations: 28.78 kB / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003882/0.2831, allocations: 287.8 kB / 414.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.2831, allocations: 12.31 kB / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.193e-05/0.2831, allocations: 11.94 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003324/0.2835, allocations: 155 kB / 414.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.2835, allocations: 0 / 414.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.2835, allocations: 4 kB / 414.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.2835, allocations: 8 kB / 414.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001154/0.2836, allocations: 35.91 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005316/0.2842, allocations: 386.3 kB / 414.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.2845, allocations: 119.9 kB / 414.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.38e-05/0.2846, allocations: 46.56 kB / 414.8 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.2846, allocations: 3.938 kB / 414.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001823/0.2848, allocations: 83.31 kB / 414.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.2848, allocations: 0 / 414.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003882/0.2852, allocations: 157.4 kB / 415.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.2853, allocations: 158.2 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000381/0.2857, allocations: 342.6 kB / 415.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.2857, allocations: 33.95 kB / 415.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.827e-05/0.2858, allocations: 128.1 kB / 415.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.626e-05/0.2859, allocations: 19.97 kB / 415.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.111e-05/0.2859, allocations: 33.7 kB / 415.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.2861, allocations: 330.8 kB / 416.1 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.665e-05/0.2862, allocations: 23.98 kB / 416.1 MB, free: 9.859 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.2863, allocations: 86.86 kB / 416.2 MB, free: 9.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000173/0.2865, allocations: 84.2 kB / 416.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2865, allocations: 0 / 416.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002379/0.2867, allocations: 129.4 kB / 416.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.2868, allocations: 4 kB / 416.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2868, allocations: 0 / 416.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.2868, allocations: 4 kB / 416.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.2869, allocations: 19.92 kB / 416.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.75e-06/0.2869, allocations: 4 kB / 416.4 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.927e-05/0.287, allocations: 15.88 kB / 416.4 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.287, allocations: 4 kB / 416.5 MB, free: 9.469 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: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001387/0.2872, allocations: 158.2 kB / 416.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.728e-05/0.2873, allocations: 73.39 kB / 416.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.362e-05/0.2873, allocations: 37.73 kB / 416.7 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.2874, allocations: 3.938 kB / 416.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2874, allocations: 0 / 416.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.2874, allocations: 3.938 kB / 416.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002363/0.2876, allocations: 245.6 kB / 417 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2876, allocations: 0 / 417 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.227e-05/0.2877, allocations: 16.05 kB / 417 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2877, allocations: 0 / 417 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.2877, allocations: 4 kB / 417 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2877, allocations: 0 / 417 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.2877, allocations: 4 kB / 417 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002755/0.288, allocations: 162.5 kB / 417.1 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.2881, allocations: 117 kB / 417.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.355e-05/0.2882, allocations: 7.984 kB / 417.3 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.756e-05/0.2883, allocations: 7.938 kB / 417.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.878e-05/0.2883, allocations: 15.92 kB / 417.3 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.2883, allocations: 4 kB / 417.3 MB, free: 8.516 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002535/0.2886, allocations: 241.9 kB / 417.5 MB, free: 8.281 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2886, allocations: 0 / 417.5 MB, free: 8.281 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002599/0.2889, allocations: 39.92 kB / 417.6 MB, free: 8.242 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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001936/0.2908, allocations: 1.017 MB / 418.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002307/0.291, allocations: 76.09 kB / 418.7 MB, free: 7.258 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.2911, allocations: 8.062 kB / 418.7 MB, free: 7.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.336e-05/0.2911, allocations: 31.92 kB / 418.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004098/0.2916, allocations: 70.95 kB / 418.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.2942, allocations: 2.22 MB / 421 MB, free: 4.805 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003932/0.2946, allocations: 0.7436 MB / 421.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.53e-05/0.2947, allocations: 25.78 kB / 421.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.2948, allocations: 59.42 kB / 421.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2948, allocations: 0 / 421.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03195/0.3267, allocations: 5.361 MB / 427.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.196/8.523, allocations: 7.312 kB / 427.2 MB, free: 14.73 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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_IntegerSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches