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.001742/0.001742, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002564/0.002564, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.408/1.408, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.002219/0.002219, allocations: 55.91 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2615, allocations: 53.36 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.00348/0.265, allocations: 1.954 MB / 433.1 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002108/0.2671, allocations: 1.262 MB / 434.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.2673, allocations: 7.938 kB / 434.4 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006001/0.2679, allocations: 155.4 kB / 434.5 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003908/0.2683, allocations: 163.4 kB / 434.7 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004645/0.2687, allocations: 178.7 kB / 434.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002714/0.269, allocations: 203.4 kB / 435 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.2691, allocations: 21.8 kB / 435.1 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.2692, allocations: 91.56 kB / 435.2 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.2694, allocations: 79.62 kB / 435.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.2694, allocations: 12 kB / 435.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000139/0.2695, allocations: 63.89 kB / 435.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.865e-05/0.2696, allocations: 55.77 kB / 435.4 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.204e-05/0.2697, allocations: 79.48 kB / 435.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003317/0.27, allocations: 227.4 kB / 435.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.27, allocations: 0 / 435.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.27, allocations: 3.938 kB / 435.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.27, allocations: 0 / 435.7 MB, free: 2.297 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.0007662/0.2708, allocations: 454.7 kB / 436.1 MB, free: 1.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.2708, allocations: 8.031 kB / 436.1 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.649e-05/0.2709, allocations: 42.73 kB / 436.2 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.214e-05/0.2709, allocations: 24.8 kB / 436.2 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003585/0.2713, allocations: 229.1 kB / 436.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.2713, allocations: 8.312 kB / 436.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.788e-05/0.2713, allocations: 11.94 kB / 436.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003451/0.2717, allocations: 167.6 kB / 436.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.2717, allocations: 3.938 kB / 436.6 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.2717, allocations: 4 kB / 436.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.2717, allocations: 4 kB / 436.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.2718, allocations: 31.97 kB / 436.6 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004951/0.2723, allocations: 346.3 kB / 437 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002502/0.2726, allocations: 130.5 kB / 437.1 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.757e-05/0.2727, allocations: 59.36 kB / 437.2 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.2727, allocations: 0 / 437.2 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001585/0.2728, allocations: 75.39 kB / 437.2 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.292e-06/0.2728, allocations: 0 / 437.2 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003805/0.2732, allocations: 161.4 kB / 437.4 MB, free: 368 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.2733, allocations: 166.2 kB / 437.5 MB, free: 164 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003272/0.2737, allocations: 289.8 kB / 437.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.2737, allocations: 26.08 kB / 437.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.494e-05/0.2738, allocations: 124.4 kB / 438 MB, free: 15.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.502e-05/0.2738, allocations: 19.84 kB / 438 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.446e-05/0.2739, allocations: 33.7 kB / 438 MB, free: 15.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.274, allocations: 330.8 kB / 438.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.302e-05/0.2741, allocations: 20 kB / 438.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.2742, allocations: 87.7 kB / 438.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001621/0.2744, allocations: 97.91 kB / 438.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2744, allocations: 0 / 438.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002252/0.2746, allocations: 133.4 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.2746, allocations: 4 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.2746, allocations: 0 / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.2746, allocations: 4 kB / 438.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.362e-05/0.2747, allocations: 24.42 kB / 438.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.2747, allocations: 7.938 kB / 438.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.276e-05/0.2748, allocations: 15.94 kB / 438.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.2748, allocations: 4 kB / 438.7 MB, free: 14.87 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.0001324/0.2749, allocations: 146.7 kB / 438.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.275, allocations: 77.48 kB / 439 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002274/0.2753, allocations: 111.3 kB / 439.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.2753, allocations: 4.094 kB / 439.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2753, allocations: 0 / 439.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.2753, allocations: 7.938 kB / 439.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002157/0.2755, allocations: 212.6 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2755, allocations: 0 / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.696e-05/0.2755, allocations: 4 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.2755, allocations: 4 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.2755, allocations: 7.984 kB / 439.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.2755, allocations: 4 kB / 439.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2755, allocations: 3.938 kB / 439.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002661/0.2758, allocations: 175.4 kB / 439.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.432e-05/0.2759, allocations: 35.88 kB / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.856e-05/0.2759, allocations: 4 kB / 439.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.08e-05/0.276, allocations: 4 kB / 439.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.832e-05/0.276, allocations: 15.92 kB / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.276, allocations: 4 kB / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002226/0.2762, allocations: 205.2 kB / 439.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2762, allocations: 0 / 439.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000266/0.2765, allocations: 39.88 kB / 439.8 MB, free: 13.73 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 (11): * Single equations (assignments): 9 * 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.001972/0.2785, allocations: 1.022 MB / 440.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002385/0.2787, allocations: 71.84 kB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2787, allocations: 0 / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.328e-05/0.2788, allocations: 28.36 kB / 440.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004464/0.2792, allocations: 88.19 kB / 441 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.2818, allocations: 2.053 MB / 443 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/0.2822, allocations: 0.7281 MB / 443.8 MB, free: 9.703 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.948e-05/0.2823, allocations: 37.59 kB / 443.8 MB, free: 9.668 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.478e-05/0.2824, allocations: 55.42 kB / 443.9 MB, free: 9.613 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2824, allocations: 3.938 kB / 443.9 MB, free: 9.609 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03435/0.3168, allocations: 5.174 MB / 449 MB, free: 4.531 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.21, allocations: 14.69 kB / 449.1 MB, free: 4.52 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.801478180997947]