Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.0009871/0.0009871, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000931/0.000931, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.8845/0.8845, allocations: 177 MB / 204.1 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.354e-06/2.354e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.419e-05/2.654e-05, allocations: 3.125 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003708/0.003735, allocations: 1.908 MB / 326.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.005172, allocations: 1.18 MB / 327.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.005309, allocations: 3.938 kB / 327.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000535/0.005844, allocations: 163.4 kB / 327.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003349/0.006178, allocations: 155.3 kB / 327.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004074/0.006586, allocations: 195 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002362/0.006822, allocations: 199.4 kB / 328.3 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.006929, allocations: 21.8 kB / 328.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.00707, allocations: 111.7 kB / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.007172, allocations: 71.8 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.145e-05/0.007194, allocations: 8 kB / 328.5 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.007318, allocations: 63.88 kB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.975e-05/0.007378, allocations: 43.84 kB / 328.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.048e-05/0.007428, allocations: 39.86 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000273/0.007701, allocations: 223.2 kB / 328.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.007705, allocations: 0 / 328.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.007708, allocations: 4 kB / 328.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.007713, allocations: 0 / 328.9 MB, free: 11.48 MB / 298.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.0007103/0.008423, allocations: 462.6 kB / 329.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.008462, allocations: 19.98 kB / 329.3 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.106e-05/0.008493, allocations: 38.69 kB / 329.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.806e-05/0.008541, allocations: 24.8 kB / 329.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.008803, allocations: 212.8 kB / 329.6 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.008817, allocations: 8.375 kB / 329.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.205e-05/0.008829, allocations: 4.375 kB / 329.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002961/0.009125, allocations: 178.1 kB / 329.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.009134, allocations: 192 / 329.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.009146, allocations: 8.125 kB / 329.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.009151, allocations: 0 / 329.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.692e-05/0.009228, allocations: 39.92 kB / 329.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000375/0.009603, allocations: 330.4 kB / 330.2 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.00976, allocations: 134.5 kB / 330.3 MB, free: 9.875 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.932e-05/0.009819, allocations: 63.36 kB / 330.4 MB, free: 9.801 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.183e-05/0.009841, allocations: 7.984 kB / 330.4 MB, free: 9.793 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000124/0.009965, allocations: 75.39 kB / 330.4 MB, free: 9.707 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/0.009966, allocations: 0 / 330.4 MB, free: 9.707 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002711/0.01024, allocations: 165.4 kB / 330.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.389e-05/0.0103, allocations: 136.8 kB / 330.7 MB, free: 9.375 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002695/0.01057, allocations: 285.9 kB / 331 MB, free: 9.086 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.01059, allocations: 29.7 kB / 331.1 MB, free: 9.051 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.809e-05/0.01066, allocations: 124.4 kB / 331.2 MB, free: 8.922 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.052e-05/0.01068, allocations: 11.91 kB / 331.2 MB, free: 8.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-05/0.01072, allocations: 29.7 kB / 331.2 MB, free: 8.875 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.211e-05/0.01081, allocations: 330.8 kB / 331.5 MB, free: 8.543 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.367e-05/0.01085, allocations: 19.98 kB / 331.6 MB, free: 8.523 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.619e-05/0.01091, allocations: 72.33 kB / 331.6 MB, free: 8.438 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.93e-05/0.01099, allocations: 61.64 kB / 331.7 MB, free: 8.371 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.01099, allocations: 11.91 kB / 331.7 MB, free: 8.359 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001212/0.01111, allocations: 97.53 kB / 331.8 MB, free: 8.258 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.01113, allocations: 7.281 kB / 331.8 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.01114, allocations: 4 kB / 331.8 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.01115, allocations: 0 / 331.8 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.341e-05/0.01121, allocations: 15.94 kB / 331.8 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.01122, allocations: 0 / 331.8 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.161e-05/0.01126, allocations: 11.92 kB / 331.8 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-06/0.01126, allocations: 4 kB / 331.8 MB, free: 8.219 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 9.682e-05/0.01136, allocations: 145.8 kB / 332 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.625e-05/0.01143, allocations: 77.48 kB / 332.1 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.01159, allocations: 115.4 kB / 332.2 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.01159, allocations: 4 kB / 332.2 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.0116, allocations: 320 / 332.2 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.0116, allocations: 0 / 332.2 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001496/0.01175, allocations: 200.6 kB / 332.4 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.01176, allocations: 0 / 332.4 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.137e-05/0.01178, allocations: 7.938 kB / 332.4 MB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.01178, allocations: 8.094 kB / 332.4 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.517e-06/0.01179, allocations: 4 kB / 332.4 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.01179, allocations: 4 kB / 332.4 MB, free: 7.605 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.01179, allocations: 0 / 332.4 MB, free: 7.605 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001699/0.01196, allocations: 183.3 kB / 332.6 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.892e-05/0.01202, allocations: 39.83 kB / 332.6 MB, free: 7.359 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.01204, allocations: 0 / 332.6 MB, free: 7.359 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.806e-05/0.01208, allocations: 8 kB / 332.6 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.838e-05/0.01212, allocations: 7.984 kB / 332.6 MB, free: 7.344 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.29e-05/0.01213, allocations: 4 kB / 332.6 MB, free: 7.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001383/0.01227, allocations: 209.2 kB / 332.8 MB, free: 7.137 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01227, allocations: 0 / 332.8 MB, free: 7.137 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001862/0.01245, allocations: 35.92 kB / 332.9 MB, free: 7.102 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.0009991/0.01345, allocations: 1.046 MB / 333.9 MB, free: 6.164 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001537/0.01361, allocations: 67.84 kB / 334 MB, free: 6.098 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.01361, allocations: 0 / 334 MB, free: 6.098 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.455e-05/0.01365, allocations: 32.05 kB / 334 MB, free: 6.066 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003227/0.01398, allocations: 77.22 kB / 334.1 MB, free: 5.992 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.01557, allocations: 1.963 MB / 336.1 MB, free: 3.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.325e-05/0.01565, allocations: 127.9 kB / 336.2 MB, free: 3.766 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.137e-05/0.01572, allocations: 21.62 kB / 336.2 MB, free: 3.742 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.01583, allocations: 56.47 kB / 336.3 MB, free: 3.688 MB / 298.7 MB Notification: Performance of SimCode: time 1.182e-06/0.01583, allocations: 0 / 336.3 MB, free: 3.688 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01962/0.03546, allocations: 5.853 MB / 342.1 MB, free: 13.89 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.853/6.889, allocations: 0 / 342.1 MB, free: 13.89 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! Error: Could not read variable backSample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv. Warning: Get data of variable backSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.670392921194434]