Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 110.2 kB / 17.06 MB, free: 5.969 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.001247/0.001247, allocations: 197.3 kB / 18.01 MB, free: 5.051 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.373/1.373, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001444, allocations: 51.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2724, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003593/0.276, allocations: 1.873 MB / 402.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002023/0.2781, allocations: 1.141 MB / 403.2 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.2782, allocations: 7.938 kB / 403.3 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003077/0.2785, allocations: 63.72 kB / 403.3 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000261/0.2788, allocations: 95.58 kB / 403.4 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000733/0.2796, allocations: 255.6 kB / 403.7 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002619/0.2798, allocations: 175.5 kB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.28, allocations: 29.55 kB / 403.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.2801, allocations: 75.69 kB / 403.9 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.2802, allocations: 75.69 kB / 404 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.683e-05/0.2802, allocations: 8 kB / 404 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.2804, allocations: 67.89 kB / 404.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.507e-05/0.2805, allocations: 47.83 kB / 404.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.246e-05/0.2806, allocations: 75.48 kB / 404.2 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000372/0.281, allocations: 238 kB / 404.4 MB, free: 4.605 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.281, allocations: 4 kB / 404.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.281, allocations: 0 / 404.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.281, allocations: 0 / 404.4 MB, free: 4.602 MB / 318.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.0008113/0.2819, allocations: 0.5387 MB / 405 MB, free: 4.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.2819, allocations: 8.031 kB / 405 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.678e-05/0.282, allocations: 38.73 kB / 405 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.091e-05/0.282, allocations: 24.8 kB / 405 MB, free: 3.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004681/0.2825, allocations: 295.8 kB / 405.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.908e-05/0.2825, allocations: 8.312 kB / 405.3 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.07e-05/0.2826, allocations: 11.94 kB / 405.4 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003716/0.2829, allocations: 162.2 kB / 405.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.283, allocations: 3.984 kB / 405.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.283, allocations: 3.938 kB / 405.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.283, allocations: 0 / 405.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001264/0.2831, allocations: 43.91 kB / 405.6 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005586/0.2837, allocations: 374.4 kB / 405.9 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002679/0.284, allocations: 123.9 kB / 406.1 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.2841, allocations: 42.56 kB / 406.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.2841, allocations: 11.94 kB / 406.1 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001884/0.2843, allocations: 79.38 kB / 406.2 MB, free: 2.625 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.2843, allocations: 0 / 406.2 MB, free: 2.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004381/0.2848, allocations: 153.4 kB / 406.3 MB, free: 2.469 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.2849, allocations: 174.3 kB / 406.5 MB, free: 2.262 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003696/0.2853, allocations: 322.6 kB / 406.8 MB, free: 1.938 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/0.2853, allocations: 33.7 kB / 406.9 MB, free: 1.898 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.2854, allocations: 120.1 kB / 407 MB, free: 1.777 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.995e-05/0.2855, allocations: 23.95 kB / 407 MB, free: 1.754 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.756e-05/0.2855, allocations: 33.66 kB / 407 MB, free: 1.715 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.2857, allocations: 330.8 kB / 407.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.993e-05/0.2858, allocations: 19.98 kB / 407.4 MB, free: 1.363 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.2859, allocations: 90.84 kB / 407.5 MB, free: 1.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.2861, allocations: 84.22 kB / 407.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2861, allocations: 0 / 407.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002406/0.2863, allocations: 121.5 kB / 407.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.2863, allocations: 8 kB / 407.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.2864, allocations: 0 / 407.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.2864, allocations: 4 kB / 407.7 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.2865, allocations: 19.92 kB / 407.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.2865, allocations: 4 kB / 407.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.106e-05/0.2866, allocations: 23.94 kB / 407.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.2866, allocations: 8 kB / 407.7 MB, free: 0.9609 MB / 318.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.0001471/0.2868, allocations: 145.8 kB / 407.9 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.934e-05/0.2869, allocations: 69.48 kB / 407.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.677e-05/0.2869, allocations: 26.02 kB / 408 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.2869, allocations: 4 kB / 408 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2869, allocations: 0 / 408 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.287, allocations: 8 kB / 408 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002311/0.2872, allocations: 241.5 kB / 408.2 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2872, allocations: 0 / 408.2 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.474e-05/0.2873, allocations: 15.98 kB / 408.2 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.2873, allocations: 0 / 408.2 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.2873, allocations: 0 / 408.2 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.175e-05/0.2873, allocations: 4 kB / 408.2 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2873, allocations: 0 / 408.2 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002782/0.2876, allocations: 182.5 kB / 408.4 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.2877, allocations: 116.9 kB / 408.5 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.099e-05/0.2878, allocations: 0 / 408.5 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.487e-05/0.2878, allocations: 11.94 kB / 408.5 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.67e-05/0.2879, allocations: 11.92 kB / 408.5 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.2879, allocations: 4 kB / 408.5 MB, free: 28 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000264/0.2882, allocations: 241.9 kB / 408.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2882, allocations: 0 / 408.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002749/0.2885, allocations: 35.98 kB / 408.8 MB, free: 15.75 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.001991/0.2905, allocations: 1.015 MB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002269/0.2907, allocations: 83.83 kB / 409.9 MB, free: 14.78 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2907, allocations: 0 / 409.9 MB, free: 14.78 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.239e-05/0.2908, allocations: 31.92 kB / 409.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004103/0.2912, allocations: 69.67 kB / 410 MB, free: 14.69 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002611/0.2938, allocations: 2.188 MB / 412.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.2942, allocations: 0.7436 MB / 412.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.078e-05/0.2943, allocations: 21.55 kB / 413 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.643e-05/0.2944, allocations: 63.41 kB / 413 MB, free: 11.53 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2945, allocations: 0 / 413 MB, free: 11.53 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0277/0.3222, allocations: 5.272 MB / 418.3 MB, free: 6.406 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.29/8.612, allocations: 12.36 kB / 418.3 MB, free: 6.398 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches