Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.001335/0.001335, 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.001669/0.001669, allocations: 208.4 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.463/1.463, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 55.92 kB / 377.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2631, allocations: 53.36 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003947/0.267, allocations: 1.906 MB / 433 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002303/0.2693, allocations: 1.169 MB / 434.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001984/0.2695, allocations: 15.88 kB / 434.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006999/0.2702, allocations: 150.7 kB / 434.3 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004418/0.2707, allocations: 167.3 kB / 434.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005023/0.2712, allocations: 183.4 kB / 434.7 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002756/0.2715, allocations: 187.5 kB / 434.8 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.2716, allocations: 37.58 kB / 434.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.2717, allocations: 79.64 kB / 435 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.2718, allocations: 87.55 kB / 435 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/0.2719, allocations: 8 kB / 435 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001492/0.272, allocations: 59.95 kB / 435.1 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.505e-05/0.2721, allocations: 43.84 kB / 435.1 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.821e-05/0.2722, allocations: 59.59 kB / 435.2 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003348/0.2725, allocations: 228.8 kB / 435.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2725, allocations: 0 / 435.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.2725, allocations: 4 kB / 435.4 MB, free: 2.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.2725, allocations: 4 kB / 435.4 MB, free: 2.238 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008066/0.2733, allocations: 458.7 kB / 435.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.2734, allocations: 8.031 kB / 435.9 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.979e-05/0.2734, allocations: 46.72 kB / 435.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.706e-05/0.2735, allocations: 24.8 kB / 436 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.2738, allocations: 221.1 kB / 436.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.2738, allocations: 12.31 kB / 436.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.757e-05/0.2739, allocations: 11.94 kB / 436.2 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003602/0.2742, allocations: 165.3 kB / 436.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.2742, allocations: 3.938 kB / 436.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.2742, allocations: 0 / 436.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.964e-06/0.2742, allocations: 4 kB / 436.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001112/0.2744, allocations: 43.91 kB / 436.4 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004788/0.2748, allocations: 330.4 kB / 436.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002606/0.2751, allocations: 134.5 kB / 436.9 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.929e-05/0.2752, allocations: 59.36 kB / 436.9 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.2752, allocations: 0 / 436.9 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001636/0.2754, allocations: 75.39 kB / 437 MB, free: 484 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.2754, allocations: 0 / 437 MB, free: 484 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003822/0.2758, allocations: 169.7 kB / 437.2 MB, free: 308 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.684e-05/0.2759, allocations: 140.5 kB / 437.3 MB, free: 136 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003167/0.2762, allocations: 285.8 kB / 437.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.2762, allocations: 25.7 kB / 437.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.303e-05/0.2763, allocations: 124.4 kB / 437.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.748e-05/0.2763, allocations: 23.83 kB / 437.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.212e-05/0.2764, allocations: 33.7 kB / 437.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2765, allocations: 326.8 kB / 438.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.369e-05/0.2766, allocations: 23.98 kB / 438.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.2767, allocations: 104.6 kB / 438.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001528/0.2768, allocations: 105.9 kB / 438.3 MB, free: 15.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2768, allocations: 0 / 438.3 MB, free: 15.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002319/0.2771, allocations: 137.6 kB / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.2771, allocations: 12 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.2771, allocations: 320 / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.2771, allocations: 4 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.197e-05/0.2772, allocations: 19.92 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.2772, allocations: 4 kB / 438.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.039e-05/0.2773, allocations: 7.938 kB / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.2773, allocations: 4 kB / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.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 (13): * Single equations (assignments): 13 * 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.0001325/0.2774, allocations: 149.8 kB / 438.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.2775, allocations: 81.48 kB / 438.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002373/0.2778, allocations: 123.3 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2778, allocations: 0 / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2778, allocations: 4 kB / 438.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.2778, allocations: 3.938 kB / 438.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002281/0.278, allocations: 196.6 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.278, allocations: 4 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.282e-05/0.278, allocations: 4 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.278, allocations: 4 kB / 439.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.2781, allocations: 4.078 kB / 439.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.2781, allocations: 8 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2781, allocations: 3.938 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002886/0.2783, allocations: 187.5 kB / 439.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.246e-05/0.2784, allocations: 27.89 kB / 439.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.2784, allocations: 4 kB / 439.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.341e-05/0.2785, allocations: 4 kB / 439.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.838e-05/0.2786, allocations: 11.92 kB / 439.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/0.2786, allocations: 8 kB / 439.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002418/0.2788, allocations: 213.1 kB / 439.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2788, allocations: 4 kB / 439.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002646/0.2791, allocations: 35.89 kB / 439.6 MB, free: 13.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (12): * Single equations (assignments): 10 * 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.002113/0.2812, allocations: 1.055 MB / 440.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000226/0.2814, allocations: 83.83 kB / 440.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2814, allocations: 384 / 440.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.547e-05/0.2815, allocations: 27.94 kB / 440.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004342/0.2819, allocations: 79.19 kB / 440.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.2844, allocations: 2.057 MB / 442.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001268/0.2845, allocations: 135.9 kB / 443 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.372e-05/0.2846, allocations: 17.8 kB / 443 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.588e-05/0.2847, allocations: 59.41 kB / 443.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2847, allocations: 0 / 443.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03425/0.3189, allocations: 5.784 MB / 448.9 MB, free: 4.457 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.47, allocations: 12 kB / 448.9 MB, free: 4.445 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_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_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.BackSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! Error: Could not read variable backSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv. Warning: Get data of variable backSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.046947946306318]