Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002088/0.002088, allocations: 205.2 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.476/1.476, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 51.94 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2811, allocations: 53.37 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003569/0.2847, allocations: 1.882 MB / 433 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002108/0.2868, allocations: 1.15 MB / 434.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.2869, allocations: 7.938 kB / 434.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000623/0.2876, allocations: 155.5 kB / 434.3 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004025/0.288, allocations: 159.4 kB / 434.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004687/0.2884, allocations: 171.1 kB / 434.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002596/0.2887, allocations: 195.4 kB / 434.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.2888, allocations: 25.53 kB / 434.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.2889, allocations: 79.7 kB / 434.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.2891, allocations: 83.55 kB / 435 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.491e-05/0.2891, allocations: 12 kB / 435 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.2892, allocations: 55.95 kB / 435 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.592e-05/0.2893, allocations: 43.83 kB / 435.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.098e-05/0.2894, allocations: 51.67 kB / 435.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003222/0.2897, allocations: 228.8 kB / 435.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2897, allocations: 0 / 435.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2897, allocations: 0 / 435.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.2897, allocations: 0 / 435.3 MB, free: 2.352 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.0007567/0.2905, allocations: 446.8 kB / 435.8 MB, free: 1.879 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.2905, allocations: 12.03 kB / 435.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.864e-05/0.2905, allocations: 42.67 kB / 435.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.462e-05/0.2906, allocations: 24.8 kB / 435.9 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003411/0.2909, allocations: 205.1 kB / 436.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.291, allocations: 8.359 kB / 436.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.147e-05/0.291, allocations: 11.94 kB / 436.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003156/0.2913, allocations: 145.9 kB / 436.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.577e-06/0.2913, allocations: 0 / 436.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.2913, allocations: 0 / 436.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.2913, allocations: 4 kB / 436.2 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.2914, allocations: 35.91 kB / 436.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004786/0.2919, allocations: 325.5 kB / 436.6 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.2921, allocations: 111.9 kB / 436.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.433e-05/0.2922, allocations: 46.5 kB / 436.7 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.2922, allocations: 4 kB / 436.7 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001582/0.2924, allocations: 71.39 kB / 436.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.442e-06/0.2924, allocations: 0 / 436.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003839/0.2928, allocations: 153.4 kB / 437 MB, free: 0.543 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.557e-05/0.2929, allocations: 106.8 kB / 437.1 MB, free: 424 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002841/0.2931, allocations: 277.3 kB / 437.3 MB, free: 140 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.2932, allocations: 29.7 kB / 437.4 MB, free: 104 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.2933, allocations: 116.2 kB / 437.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/0.2933, allocations: 19.84 kB / 437.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.159e-05/0.2933, allocations: 29.67 kB / 437.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2935, allocations: 330.8 kB / 437.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.883e-05/0.2935, allocations: 23.92 kB / 437.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.2936, allocations: 90.84 kB / 438 MB, free: 15.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001421/0.2938, allocations: 84.25 kB / 438 MB, free: 15.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2938, allocations: 3.938 kB / 438 MB, free: 15.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002056/0.294, allocations: 113.8 kB / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.294, allocations: 4 kB / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.294, allocations: 0 / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.294, allocations: 4 kB / 438.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.472e-05/0.2941, allocations: 19.92 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.2941, allocations: 4.125 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.858e-05/0.2942, allocations: 19.83 kB / 438.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.2942, allocations: 8 kB / 438.2 MB, free: 15.18 MB / 350.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.0001296/0.2943, allocations: 149.7 kB / 438.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.412e-05/0.2944, allocations: 65.53 kB / 438.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002324/0.2946, allocations: 107.4 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.2947, allocations: 4 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2947, allocations: 0 / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.2947, allocations: 7.875 kB / 438.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001888/0.2949, allocations: 192.8 kB / 438.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.2949, allocations: 0 / 438.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.404e-05/0.2949, allocations: 15.98 kB / 438.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.2949, allocations: 3.984 kB / 438.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.2949, allocations: 4 kB / 438.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2949, allocations: 0 / 438.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2949, allocations: 0 / 438.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002518/0.2952, allocations: 162.6 kB / 438.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.459e-05/0.2952, allocations: 39.78 kB / 439 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/0.2953, allocations: 0 / 439 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.146e-05/0.2953, allocations: 11.98 kB / 439 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.953e-05/0.2954, allocations: 11.94 kB / 439 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.2954, allocations: 7.938 kB / 439 MB, free: 14.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002028/0.2956, allocations: 200.5 kB / 439.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2956, allocations: 0 / 439.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002446/0.2958, allocations: 31.98 kB / 439.2 MB, free: 14.1 MB / 350.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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.00204/0.2979, allocations: 1.043 MB / 440.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002091/0.2981, allocations: 71.91 kB / 440.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2981, allocations: 0 / 440.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.281e-05/0.2981, allocations: 27.98 kB / 440.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004004/0.2985, allocations: 68.22 kB / 440.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.3008, allocations: 1.97 MB / 442.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.3009, allocations: 119.4 kB / 442.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.41e-05/0.301, allocations: 29.73 kB / 442.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.082e-05/0.3011, allocations: 55.42 kB / 442.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3011, allocations: 0 / 442.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03169/0.3328, allocations: 5.436 MB / 448 MB, free: 5.379 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.11, allocations: 11.42 kB / 448 MB, free: 5.371 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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 1.79247e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.750291554024443]