Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008052/0.0008052, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007387/0.0007387, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.878/0.878, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.046e-05/1.165e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.002235/0.002246, allocations: 1.871 MB / 320.3 MB, free: 4.469 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.00353, allocations: 1.032 MB / 321.3 MB, free: 3.43 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.003662, allocations: 15.88 kB / 321.4 MB, free: 3.414 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007142/0.004376, allocations: 159.4 kB / 321.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005121/0.004888, allocations: 115.5 kB / 321.6 MB, free: 3.145 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007803/0.005669, allocations: 226.9 kB / 321.8 MB, free: 2.926 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003111/0.00598, allocations: 187.5 kB / 322 MB, free: 2.742 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.006111, allocations: 33.77 kB / 322.1 MB, free: 2.707 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000149/0.00626, allocations: 107.7 kB / 322.2 MB, free: 2.602 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001308/0.006391, allocations: 67.8 kB / 322.2 MB, free: 2.535 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.006415, allocations: 8 kB / 322.2 MB, free: 2.527 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.006559, allocations: 59.91 kB / 322.3 MB, free: 2.469 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.945e-05/0.006629, allocations: 43.83 kB / 322.3 MB, free: 2.426 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.851e-05/0.006687, allocations: 47.78 kB / 322.4 MB, free: 2.379 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003132/0.007001, allocations: 211.3 kB / 322.6 MB, free: 2.172 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.007005, allocations: 0 / 322.6 MB, free: 2.172 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.007006, allocations: 0 / 322.6 MB, free: 2.172 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.007011, allocations: 4 kB / 322.6 MB, free: 2.168 MB / 282.7 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.0008753/0.007887, allocations: 450.7 kB / 323 MB, free: 1.691 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.822e-05/0.007945, allocations: 8.922 kB / 323.1 MB, free: 1.684 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.765e-05/0.007983, allocations: 38.75 kB / 323.1 MB, free: 1.637 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.486e-05/0.008037, allocations: 20.8 kB / 323.1 MB, free: 1.617 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000411/0.008448, allocations: 220.7 kB / 323.3 MB, free: 1.371 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.008466, allocations: 4.375 kB / 323.3 MB, free: 1.367 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.432e-05/0.00848, allocations: 12.38 kB / 323.3 MB, free: 1.355 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003207/0.008801, allocations: 170.9 kB / 323.5 MB, free: 1.164 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.008813, allocations: 3.938 kB / 323.5 MB, free: 1.16 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.008825, allocations: 8 kB / 323.5 MB, free: 1.152 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.008833, allocations: 0 / 323.5 MB, free: 1.152 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.425e-05/0.008917, allocations: 35.98 kB / 323.6 MB, free: 1.117 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004303/0.009347, allocations: 330.3 kB / 323.9 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002381/0.009585, allocations: 130.5 kB / 324 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.083e-05/0.009646, allocations: 59.36 kB / 324.1 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.009668, allocations: 0 / 324.1 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001323/0.0098, allocations: 79.38 kB / 324.1 MB, free: 428 kB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.009801, allocations: 0 / 324.1 MB, free: 428 kB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003085/0.01011, allocations: 169.7 kB / 324.3 MB, free: 252 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.681e-05/0.01019, allocations: 140.5 kB / 324.4 MB, free: 80 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002482/0.01043, allocations: 269.9 kB / 324.7 MB, free: 15.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.01045, allocations: 25.7 kB / 324.7 MB, free: 15.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.976e-05/0.01053, allocations: 120.4 kB / 324.8 MB, free: 15.65 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.534e-05/0.01056, allocations: 23.83 kB / 324.9 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.295e-05/0.0106, allocations: 21.8 kB / 324.9 MB, free: 15.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.847e-05/0.0107, allocations: 338.7 kB / 325.2 MB, free: 15.26 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.27e-05/0.01074, allocations: 27.92 kB / 325.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.59e-05/0.01081, allocations: 64.27 kB / 325.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.762e-05/0.01089, allocations: 57.77 kB / 325.4 MB, free: 15.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.01089, allocations: 0 / 325.4 MB, free: 15.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001344/0.01102, allocations: 101.8 kB / 325.5 MB, free: 14.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.01104, allocations: 8 kB / 325.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.01105, allocations: 0 / 325.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.01106, allocations: 0 / 325.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.763e-05/0.01113, allocations: 11.98 kB / 325.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.01114, allocations: 8.094 kB / 325.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.275e-05/0.01119, allocations: 7.953 kB / 325.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-06/0.0112, allocations: 8.031 kB / 325.5 MB, free: 14.95 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001072/0.0113, allocations: 141.8 kB / 325.7 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.767e-05/0.01138, allocations: 69.53 kB / 325.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003544/0.01174, allocations: 119.4 kB / 325.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.01174, allocations: 4 kB / 325.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.01174, allocations: 0 / 325.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.01175, allocations: 0 / 325.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.0119, allocations: 192.6 kB / 326 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.0119, allocations: 8.094 kB / 326 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.694e-05/0.01193, allocations: 11.94 kB / 326 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.01194, allocations: 4 kB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.01195, allocations: 3.984 kB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.01195, allocations: 4 kB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01195, allocations: 0 / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001826/0.01213, allocations: 191.3 kB / 326.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.641e-05/0.01219, allocations: 31.81 kB / 326.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.306e-05/0.01221, allocations: 8 kB / 326.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.141e-05/0.01225, allocations: 4 kB / 326.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/0.01229, allocations: 11.98 kB / 326.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.01231, allocations: 8 kB / 326.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001372/0.01245, allocations: 197.2 kB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01245, allocations: 0 / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001952/0.01264, allocations: 31.94 kB / 326.5 MB, free: 13.83 MB / 298.7 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.001089/0.01373, allocations: 1.056 MB / 327.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000166/0.0139, allocations: 71.84 kB / 327.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.0139, allocations: 0 / 327.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.636e-05/0.01395, allocations: 23.98 kB / 327.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.01427, allocations: 79.62 kB / 327.8 MB, free: 12.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001857/0.01613, allocations: 1.936 MB / 329.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.315e-05/0.01622, allocations: 127.9 kB / 329.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.464e-05/0.0163, allocations: 21.62 kB / 329.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.913e-05/0.01638, allocations: 48.48 kB / 329.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of SimCode: time 1.563e-06/0.01638, allocations: 0 / 329.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02392/0.0403, allocations: 5.759 MB / 335.6 MB, free: 4.816 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.092/7.132, allocations: 7.875 kB / 335.7 MB, free: 4.809 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! Error: Could not read variable backSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv. Warning: Get data of variable backSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.914710179902613]