Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001658/0.001658, allocations: 122.8 kB / 17.79 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.001813/0.001813, allocations: 202 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.419/1.419, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001809/0.001809, allocations: 67.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.278, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003284/0.2813, allocations: 1.894 MB / 410.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002018/0.2833, allocations: 1.208 MB / 411.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.2835, allocations: 3.938 kB / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005601/0.284, allocations: 147.5 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003594/0.2844, allocations: 155.4 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004268/0.2848, allocations: 167.4 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002457/0.2851, allocations: 191.5 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.2852, allocations: 37.45 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.2853, allocations: 75.7 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.2855, allocations: 79.62 kB / 412.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.176e-05/0.2855, allocations: 8 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000133/0.2856, allocations: 55.95 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.31e-05/0.2857, allocations: 39.84 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.123e-05/0.2858, allocations: 75.48 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003051/0.2861, allocations: 214.2 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2861, allocations: 0 / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2861, allocations: 4 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.2861, allocations: 0 / 413.1 MB, free: 13.2 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.0007451/0.2869, allocations: 0.5193 MB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.2869, allocations: 8.031 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.706e-05/0.287, allocations: 42.73 kB / 413.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.114e-05/0.287, allocations: 20.8 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003364/0.2874, allocations: 275 kB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.492e-05/0.2874, allocations: 4.375 kB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.2874, allocations: 7.938 kB / 414 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003152/0.2877, allocations: 146.2 kB / 414.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.2878, allocations: 0 / 414.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.2878, allocations: 11.94 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.2878, allocations: 0 / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000102/0.2879, allocations: 39.89 kB / 414.1 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004744/0.2884, allocations: 362.4 kB / 414.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000227/0.2886, allocations: 111.9 kB / 414.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.073e-05/0.2887, allocations: 46.5 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.2887, allocations: 0 / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001559/0.2889, allocations: 83.39 kB / 414.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.2889, allocations: 3.938 kB / 414.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003505/0.2893, allocations: 145.4 kB / 414.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.2894, allocations: 140.5 kB / 415 MB, free: 10.99 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002885/0.2897, allocations: 268.9 kB / 415.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.2897, allocations: 33.7 kB / 415.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.548e-05/0.2898, allocations: 112.1 kB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.412e-05/0.2898, allocations: 16.14 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.848e-05/0.2899, allocations: 37.67 kB / 415.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.29, allocations: 330.8 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.098e-05/0.2901, allocations: 20 kB / 415.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.828e-05/0.2902, allocations: 65.94 kB / 415.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.2903, allocations: 88.19 kB / 416 MB, free: 9.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2903, allocations: 0 / 416 MB, free: 9.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002061/0.2906, allocations: 105.5 kB / 416.1 MB, free: 9.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.2906, allocations: 8 kB / 416.1 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.2906, allocations: 4.125 kB / 416.1 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.2906, allocations: 0 / 416.1 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.118e-05/0.2907, allocations: 23.92 kB / 416.1 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.2907, allocations: 0 / 416.1 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.104e-05/0.2908, allocations: 15.83 kB / 416.1 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.2908, allocations: 4 kB / 416.1 MB, free: 9.805 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,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.0001341/0.2909, allocations: 145.8 kB / 416.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.441e-05/0.291, allocations: 65.56 kB / 416.3 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.221e-05/0.2911, allocations: 25.7 kB / 416.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.2911, allocations: 4 kB / 416.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2911, allocations: 320 / 416.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.2911, allocations: 3.938 kB / 416.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.2913, allocations: 229.6 kB / 416.6 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/0.2913, allocations: 7.984 kB / 416.6 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.511e-05/0.2914, allocations: 7.938 kB / 416.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.2914, allocations: 0 / 416.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.2914, allocations: 8 kB / 416.6 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.2914, allocations: 3.938 kB / 416.6 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2914, allocations: 4.031 kB / 416.6 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002651/0.2917, allocations: 162.5 kB / 416.8 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.2918, allocations: 108.9 kB / 416.9 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.805e-05/0.2918, allocations: 4 kB / 416.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.407e-05/0.2919, allocations: 11.98 kB / 416.9 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.79e-05/0.2919, allocations: 7.938 kB / 416.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.292, allocations: 4 kB / 416.9 MB, free: 8.906 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002063/0.2922, allocations: 204.5 kB / 417.1 MB, free: 8.707 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2922, allocations: 0 / 417.1 MB, free: 8.707 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000247/0.2924, allocations: 31.92 kB / 417.1 MB, free: 8.676 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,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.001922/0.2944, allocations: 0.997 MB / 418.1 MB, free: 7.785 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002053/0.2946, allocations: 63.86 kB / 418.2 MB, free: 7.723 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.2946, allocations: 0 / 418.2 MB, free: 7.723 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.958e-05/0.2947, allocations: 31.92 kB / 418.2 MB, free: 7.691 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004031/0.2951, allocations: 76 kB / 418.3 MB, free: 7.621 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.2974, allocations: 1.944 MB / 420.3 MB, free: 5.559 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003501/0.2978, allocations: 0.728 MB / 421 MB, free: 4.805 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.768e-05/0.2978, allocations: 21.55 kB / 421 MB, free: 4.781 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.233e-05/0.2979, allocations: 47.42 kB / 421.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.2979, allocations: 3.938 kB / 421.1 MB, free: 4.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02733/0.3253, allocations: 4.687 MB / 425.7 MB, free: 188 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.135/8.46, allocations: 4.062 kB / 425.7 MB, free: 184 kB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches