Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_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.001351/0.001351, allocations: 105.7 kB / 17.06 MB, free: 6.016 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.001399/0.0014, allocations: 189.4 kB / 18 MB, free: 5.102 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.386/1.386, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 51.91 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2632, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.004367/0.2676, allocations: 1.888 MB / 402.1 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002517/0.2702, allocations: 1.064 MB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.2704, allocations: 3.938 kB / 403.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007725/0.2712, allocations: 154.3 kB / 403.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000408/0.2716, allocations: 115.5 kB / 403.4 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008034/0.2724, allocations: 201.6 kB / 403.6 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003647/0.2728, allocations: 175.6 kB / 403.8 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.273, allocations: 41.47 kB / 403.9 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.2731, allocations: 75.64 kB / 403.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.2733, allocations: 67.69 kB / 404 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.468e-05/0.2734, allocations: 8 kB / 404 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002146/0.2736, allocations: 59.91 kB / 404.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.2737, allocations: 47.83 kB / 404.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.2738, allocations: 67.55 kB / 404.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004647/0.2743, allocations: 198.3 kB / 404.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.2743, allocations: 0 / 404.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2743, allocations: 4 kB / 404.4 MB, free: 4.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.457e-06/0.2744, allocations: 0 / 404.4 MB, free: 4.648 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.001112/0.2755, allocations: 0.5193 MB / 404.9 MB, free: 4.074 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.2755, allocations: 8.031 kB / 404.9 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.062e-05/0.2756, allocations: 34.75 kB / 404.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.032e-05/0.2757, allocations: 24.8 kB / 405 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004845/0.2762, allocations: 271 kB / 405.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.2762, allocations: 8.312 kB / 405.2 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.656e-05/0.2763, allocations: 15.92 kB / 405.2 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004587/0.2767, allocations: 146.7 kB / 405.4 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.2768, allocations: 0 / 405.4 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.2768, allocations: 4 kB / 405.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.2768, allocations: 0 / 405.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001508/0.277, allocations: 35.92 kB / 405.4 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006644/0.2776, allocations: 350.5 kB / 405.8 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003309/0.278, allocations: 107.9 kB / 405.9 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.2781, allocations: 46.56 kB / 405.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/0.2782, allocations: 4.062 kB / 405.9 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002249/0.2784, allocations: 87.27 kB / 406 MB, free: 2.777 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 2.385e-06/0.2784, allocations: 4 kB / 406 MB, free: 2.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005455/0.279, allocations: 137.5 kB / 406.2 MB, free: 2.633 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.2791, allocations: 132.5 kB / 406.3 MB, free: 2.473 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004556/0.2796, allocations: 269.2 kB / 406.5 MB, free: 2.195 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.2796, allocations: 29.7 kB / 406.6 MB, free: 2.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.2798, allocations: 116.1 kB / 406.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.689e-05/0.2798, allocations: 19.84 kB / 406.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.979e-05/0.2799, allocations: 37.64 kB / 406.7 MB, free: 1.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.2801, allocations: 330.8 kB / 407.1 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.068e-05/0.2802, allocations: 15.98 kB / 407.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.2804, allocations: 74 kB / 407.2 MB, free: 1.539 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002124/0.2806, allocations: 72.22 kB / 407.2 MB, free: 1.453 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.2806, allocations: 0 / 407.2 MB, free: 1.453 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003441/0.281, allocations: 121.5 kB / 407.3 MB, free: 1.328 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.281, allocations: 4 kB / 407.3 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.281, allocations: 0 / 407.3 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.2811, allocations: 4 kB / 407.4 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.2812, allocations: 11.98 kB / 407.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.2812, allocations: 4 kB / 407.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.2814, allocations: 19.83 kB / 407.4 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/0.2814, allocations: 4.125 kB / 407.4 MB, free: 1.281 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,sample1.u,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.0001878/0.2816, allocations: 142.1 kB / 407.5 MB, free: 1.133 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.2817, allocations: 65.53 kB / 407.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.15e-05/0.2818, allocations: 21.7 kB / 407.6 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.2818, allocations: 4 kB / 407.6 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.2819, allocations: 4 kB / 407.6 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.2819, allocations: 3.938 kB / 407.6 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000311/0.2822, allocations: 225.5 kB / 407.8 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2822, allocations: 64 / 407.8 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.952e-05/0.2823, allocations: 8 kB / 407.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.2823, allocations: 0 / 407.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.2823, allocations: 7.984 kB / 407.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.229e-06/0.2823, allocations: 3.984 kB / 407.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2823, allocations: 0 / 407.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003802/0.2827, allocations: 158.6 kB / 408 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001495/0.2829, allocations: 112.9 kB / 408.1 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.635e-05/0.2829, allocations: 8 kB / 408.1 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.66e-05/0.283, allocations: 3.938 kB / 408.1 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.744e-05/0.2831, allocations: 11.92 kB / 408.2 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.2831, allocations: 4 kB / 408.2 MB, free: 412 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002938/0.2834, allocations: 192.5 kB / 408.3 MB, free: 220 kB / 318.1 MB Notification: Performance of sort global known variables: time 2.685e-06/0.2834, allocations: 0 / 408.3 MB, free: 220 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004397/0.2839, allocations: 31.92 kB / 408.4 MB, free: 188 kB / 318.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,sample1.u,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.002729/0.2866, allocations: 1.014 MB / 409.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003443/0.287, allocations: 71.91 kB / 409.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.287, allocations: 0 / 409.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.2871, allocations: 27.94 kB / 409.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006018/0.2878, allocations: 58.05 kB / 409.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003283/0.2911, allocations: 1.925 MB / 411.5 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/0.2915, allocations: 0.728 MB / 412.2 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001136/0.2916, allocations: 17.8 kB / 412.2 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.2917, allocations: 51.36 kB / 412.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2917, allocations: 0 / 412.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02575/0.3175, allocations: 4.602 MB / 416.9 MB, free: 7.824 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.044/8.362, allocations: 15.38 kB / 416.9 MB, free: 7.812 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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_BooleanSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches