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.001377/0.001377, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001632/0.001632, allocations: 210.6 kB / 23.73 MB, free: 4.387 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.39/1.39, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001549/0.001549, allocations: 47.92 kB / 377.7 MB, free: 3.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2527, allocations: 53.36 MB / 431.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003433/0.2561, allocations: 1.886 MB / 433 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001978/0.2581, allocations: 1.142 MB / 434.1 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.2582, allocations: 11.94 kB / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000573/0.2587, allocations: 155.1 kB / 434.3 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003758/0.2591, allocations: 163.3 kB / 434.4 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004546/0.2596, allocations: 171.4 kB / 434.6 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002543/0.2598, allocations: 191.5 kB / 434.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.2599, allocations: 21.73 kB / 434.8 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.26, allocations: 83.62 kB / 434.9 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.2602, allocations: 83.61 kB / 435 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.29e-05/0.2602, allocations: 8 kB / 435 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.2603, allocations: 51.97 kB / 435 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.919e-05/0.2604, allocations: 47.83 kB / 435.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.837e-05/0.2605, allocations: 51.61 kB / 435.1 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003122/0.2608, allocations: 223.5 kB / 435.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2608, allocations: 0 / 435.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2608, allocations: 0 / 435.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.2608, allocations: 0 / 435.3 MB, free: 2.402 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.0007175/0.2615, allocations: 454.7 kB / 435.8 MB, free: 1.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.2616, allocations: 8.031 kB / 435.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.2616, allocations: 34.75 kB / 435.8 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.603e-05/0.2616, allocations: 24.73 kB / 435.9 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003375/0.262, allocations: 213.2 kB / 436.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.262, allocations: 384 / 436.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.262, allocations: 11.94 kB / 436.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003009/0.2623, allocations: 141.9 kB / 436.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.2623, allocations: 0 / 436.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.2623, allocations: 4 kB / 436.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.2624, allocations: 7.984 kB / 436.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001018/0.2625, allocations: 35.91 kB / 436.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004713/0.2629, allocations: 329.5 kB / 436.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000244/0.2632, allocations: 115.8 kB / 436.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.268e-05/0.2633, allocations: 38.56 kB / 436.7 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.2633, allocations: 4 kB / 436.7 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001551/0.2634, allocations: 79.31 kB / 436.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.353e-06/0.2634, allocations: 0 / 436.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003535/0.2638, allocations: 149.4 kB / 437 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.188e-05/0.2639, allocations: 106.8 kB / 437.1 MB, free: 472 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002919/0.2642, allocations: 281.3 kB / 437.3 MB, free: 184 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.2642, allocations: 29.7 kB / 437.4 MB, free: 148 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.976e-05/0.2643, allocations: 116.1 kB / 437.5 MB, free: 28 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.2643, allocations: 15.91 kB / 437.5 MB, free: 12 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.611e-05/0.2644, allocations: 33.81 kB / 437.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.2645, allocations: 330.8 kB / 437.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.392e-05/0.2646, allocations: 23.98 kB / 437.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.2647, allocations: 90.83 kB / 438 MB, free: 15.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.2648, allocations: 88.45 kB / 438 MB, free: 15.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2648, allocations: 0 / 438 MB, free: 15.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002137/0.265, allocations: 117.5 kB / 438.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.265, allocations: 4 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.2651, allocations: 4 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.2651, allocations: 0 / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.617e-05/0.2651, allocations: 15.94 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.2651, allocations: 128 / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.826e-05/0.2652, allocations: 19.86 kB / 438.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.937e-06/0.2652, allocations: 4 kB / 438.2 MB, free: 15.23 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.0001316/0.2654, allocations: 141.8 kB / 438.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.936e-05/0.2654, allocations: 69.5 kB / 438.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002339/0.2657, allocations: 115.3 kB / 438.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.2657, allocations: 0 / 438.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.83e-06/0.2657, allocations: 3.984 kB / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.2657, allocations: 7.938 kB / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001845/0.2659, allocations: 188.6 kB / 438.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2659, allocations: 7.938 kB / 438.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.968e-05/0.2659, allocations: 4 kB / 438.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.2659, allocations: 0 / 438.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.404e-05/0.2659, allocations: 11.98 kB / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.2659, allocations: 0 / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.2659, allocations: 0 / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002394/0.2662, allocations: 158.6 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.407e-05/0.2663, allocations: 43.77 kB / 438.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.2663, allocations: 4 kB / 438.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.668e-05/0.2663, allocations: 8.062 kB / 439 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.227e-05/0.2664, allocations: 15.92 kB / 439 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.2664, allocations: 4 kB / 439 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002158/0.2666, allocations: 204.5 kB / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2666, allocations: 0 / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00026/0.2669, allocations: 24 kB / 439.2 MB, free: 14.15 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.002028/0.2689, allocations: 1.036 MB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002057/0.2691, allocations: 75.84 kB / 440.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2691, allocations: 3.938 kB / 440.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.138e-05/0.2692, allocations: 27.94 kB / 440.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003859/0.2696, allocations: 83.33 kB / 440.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002231/0.2718, allocations: 1.962 MB / 442.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001223/0.2719, allocations: 123.4 kB / 442.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.818e-05/0.272, allocations: 21.62 kB / 442.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.957e-05/0.2721, allocations: 55.41 kB / 442.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2721, allocations: 0 / 442.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03209/0.3042, allocations: 5.402 MB / 448 MB, free: 5.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.37, allocations: 14.98 kB / 448 MB, free: 5.453 MB / 350.1 MB " [Timeout remaining time 648] (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.983462044037879]