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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001322/0.001322, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001433/0.001433, allocations: 212.3 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 230.5 MB / 257.4 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001845, allocations: 59.91 kB / 377.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2583, allocations: 53.41 MB / 431.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003509/0.2618, allocations: 1.939 MB / 433.1 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002116/0.2639, allocations: 1.235 MB / 434.4 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.264, allocations: 7.938 kB / 434.4 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005902/0.2646, allocations: 155.5 kB / 434.5 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003884/0.265, allocations: 158.9 kB / 434.7 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004578/0.2654, allocations: 171.5 kB / 434.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002605/0.2657, allocations: 187.5 kB / 435 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.2658, allocations: 21.72 kB / 435 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.2659, allocations: 83.64 kB / 435.1 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.2661, allocations: 87.61 kB / 435.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.233e-05/0.2661, allocations: 8 kB / 435.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.2662, allocations: 59.89 kB / 435.3 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.367e-05/0.2663, allocations: 43.84 kB / 435.3 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.745e-05/0.2664, allocations: 71.48 kB / 435.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003614/0.2667, allocations: 215.5 kB / 435.6 MB, free: 2.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.2668, allocations: 8 kB / 435.6 MB, free: 2.242 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2668, allocations: 0 / 435.6 MB, free: 2.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.2668, allocations: 0 / 435.6 MB, free: 2.242 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.0007613/0.2675, allocations: 454.7 kB / 436 MB, free: 1.762 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.2676, allocations: 12.03 kB / 436.1 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.377e-05/0.2676, allocations: 30.75 kB / 436.1 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.319e-05/0.2677, allocations: 28.78 kB / 436.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/0.268, allocations: 217 kB / 436.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.268, allocations: 4.375 kB / 436.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.268, allocations: 8.375 kB / 436.3 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003405/0.2684, allocations: 150.8 kB / 436.5 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.2684, allocations: 0 / 436.5 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.2684, allocations: 4 kB / 436.5 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.2684, allocations: 0 / 436.5 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000102/0.2685, allocations: 35.91 kB / 436.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004782/0.269, allocations: 337.5 kB / 436.9 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002328/0.2692, allocations: 107.9 kB / 437 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.84e-05/0.2693, allocations: 38.56 kB / 437 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.2693, allocations: 0 / 437 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001571/0.2695, allocations: 83.31 kB / 437.1 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.222e-06/0.2695, allocations: 4 kB / 437.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003613/0.2698, allocations: 137.5 kB / 437.2 MB, free: 436 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.57e-05/0.2699, allocations: 140.5 kB / 437.4 MB, free: 264 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003116/0.2703, allocations: 265.2 kB / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.2703, allocations: 29.7 kB / 437.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.861e-05/0.2704, allocations: 120.3 kB / 437.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.378e-05/0.2704, allocations: 19.89 kB / 437.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.165e-05/0.2705, allocations: 33.67 kB / 437.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.2706, allocations: 334.8 kB / 438.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.214e-05/0.2707, allocations: 20.23 kB / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.519e-05/0.2708, allocations: 66 kB / 438.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.2709, allocations: 84.25 kB / 438.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2709, allocations: 0 / 438.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002113/0.2711, allocations: 113.5 kB / 438.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.2711, allocations: 12.12 kB / 438.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2711, allocations: 0 / 438.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.2712, allocations: 3.938 kB / 438.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.972e-05/0.2712, allocations: 12 kB / 438.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.2712, allocations: 3.938 kB / 438.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.884e-05/0.2713, allocations: 15.92 kB / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.2713, allocations: 7.938 kB / 438.5 MB, free: 15.07 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.0001395/0.2715, allocations: 146.5 kB / 438.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.62e-05/0.2716, allocations: 65.5 kB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002315/0.2718, allocations: 107.4 kB / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.2718, allocations: 0 / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.2718, allocations: 4 kB / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.2718, allocations: 0 / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002049/0.272, allocations: 204.5 kB / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.272, allocations: 0 / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.627e-05/0.272, allocations: 7.938 kB / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.272, allocations: 0 / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.272, allocations: 16.19 kB / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.272, allocations: 0 / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.272, allocations: 0 / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002479/0.2723, allocations: 154.6 kB / 439.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.753e-05/0.2724, allocations: 35.78 kB / 439.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.925e-05/0.2724, allocations: 4 kB / 439.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.94e-05/0.2724, allocations: 11.98 kB / 439.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.357e-05/0.2725, allocations: 4 kB / 439.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.2725, allocations: 4 kB / 439.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002044/0.2727, allocations: 204.5 kB / 439.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2727, allocations: 0 / 439.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002418/0.273, allocations: 31.92 kB / 439.5 MB, free: 14 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 (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.001989/0.2749, allocations: 1.002 MB / 440.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002163/0.2752, allocations: 67.84 kB / 440.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2752, allocations: 0 / 440.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.845e-05/0.2752, allocations: 24.25 kB / 440.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.2756, allocations: 69.86 kB / 440.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.2779, allocations: 1.959 MB / 442.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.2783, allocations: 0.7281 MB / 443.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.967e-05/0.2783, allocations: 25.47 kB / 443.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.386e-05/0.2784, allocations: 51.41 kB / 443.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2784, allocations: 0 / 443.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03183/0.3103, allocations: 4.851 MB / 448.2 MB, free: 5.242 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.25, allocations: 9.297 kB / 448.2 MB, free: 5.238 MB / 350.1 MB " [Timeout remaining time 649] (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 1.79247e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.812090490999253]