Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.0008934/0.0008934, 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.0008721/0.0008721, allocations: 149.1 kB / 23.93 MB, free: 0.6289 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.9127/0.9127, allocations: 173.3 MB / 200.4 MB, free: 9.438 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.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.886e-05/3.049e-05, allocations: 5.516 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.002787/0.002817, allocations: 1.95 MB / 320.4 MB, free: 4.398 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.00445, allocations: 1.063 MB / 321.4 MB, free: 3.328 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001827/0.004633, allocations: 7.938 kB / 321.5 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007312/0.005364, allocations: 155.4 kB / 321.6 MB, free: 3.168 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002917/0.005656, allocations: 123.4 kB / 321.7 MB, free: 3.047 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006142/0.00627, allocations: 253.8 kB / 322 MB, free: 2.805 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002486/0.006519, allocations: 223.3 kB / 322.2 MB, free: 2.586 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.006659, allocations: 36.55 kB / 322.2 MB, free: 2.547 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000145/0.006804, allocations: 127.6 kB / 322.4 MB, free: 2.422 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.006935, allocations: 87.7 kB / 322.4 MB, free: 2.336 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.912e-05/0.006964, allocations: 12 kB / 322.4 MB, free: 2.324 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001415/0.007105, allocations: 63.89 kB / 322.5 MB, free: 2.262 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.389e-05/0.007179, allocations: 59.81 kB / 322.6 MB, free: 2.203 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.868e-05/0.007248, allocations: 43.8 kB / 322.6 MB, free: 2.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003856/0.007633, allocations: 255.1 kB / 322.9 MB, free: 1.91 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.348e-06/0.007643, allocations: 3.984 kB / 322.9 MB, free: 1.906 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.007645, allocations: 0 / 322.9 MB, free: 1.906 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.007653, allocations: 0 / 322.9 MB, free: 1.906 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009177/0.008571, allocations: 489.8 kB / 323.3 MB, free: 1.395 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.395e-05/0.008635, allocations: 12.92 kB / 323.4 MB, free: 1.383 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.846e-05/0.008683, allocations: 46.73 kB / 323.4 MB, free: 1.328 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.417e-05/0.008757, allocations: 24.8 kB / 323.4 MB, free: 1.305 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003744/0.009132, allocations: 224.8 kB / 323.6 MB, free: 1.055 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.009157, allocations: 8.375 kB / 323.7 MB, free: 1.047 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.262e-05/0.00918, allocations: 12.38 kB / 323.7 MB, free: 1.035 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004598/0.00964, allocations: 293.9 kB / 324 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.00965, allocations: 0 / 324 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.009664, allocations: 8 kB / 324 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.009671, allocations: 4 kB / 324 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.009797, allocations: 63.91 kB / 324 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008113/0.01061, allocations: 337.4 kB / 324.4 MB, free: 280 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002674/0.01088, allocations: 172 kB / 324.5 MB, free: 80 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.777e-05/0.01097, allocations: 78.53 kB / 324.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.011, allocations: 11.98 kB / 324.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001362/0.01114, allocations: 71.33 kB / 324.7 MB, free: 15.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.713e-06/0.01114, allocations: 4 kB / 324.7 MB, free: 15.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003732/0.01151, allocations: 233.3 kB / 324.9 MB, free: 15.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.505e-05/0.01159, allocations: 122.8 kB / 325 MB, free: 15.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002275/0.01182, allocations: 273.7 kB / 325.3 MB, free: 15.24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.01183, allocations: 33.7 kB / 325.3 MB, free: 15.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.434e-05/0.0119, allocations: 112.6 kB / 325.4 MB, free: 15.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.65e-05/0.01193, allocations: 27.83 kB / 325.5 MB, free: 15.06 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.989e-05/0.01198, allocations: 41.66 kB / 325.5 MB, free: 15.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.756e-05/0.01207, allocations: 334.8 kB / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.648e-05/0.01213, allocations: 27.98 kB / 325.9 MB, free: 14.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.319e-05/0.01221, allocations: 103.7 kB / 326 MB, free: 14.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001092/0.01232, allocations: 105.3 kB / 326.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.01232, allocations: 0 / 326.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001652/0.01249, allocations: 145.5 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.01251, allocations: 7.984 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.01251, allocations: 320 / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.01253, allocations: 4 kB / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.03e-05/0.0126, allocations: 16 kB / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.01261, allocations: 0 / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.007e-05/0.01267, allocations: 15.88 kB / 326.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/0.01268, allocations: 11.98 kB / 326.3 MB, free: 14.2 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,$CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001276/0.01281, allocations: 157.7 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.01295, allocations: 129.6 kB / 326.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002002/0.01315, allocations: 115.4 kB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.01316, allocations: 4 kB / 326.7 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.01316, allocations: 0 / 326.7 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.01317, allocations: 4 kB / 326.7 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001699/0.01334, allocations: 208.5 kB / 326.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.01334, allocations: 0 / 326.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.806e-05/0.01338, allocations: 12.47 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.922e-06/0.01339, allocations: 3.984 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.0134, allocations: 7.938 kB / 326.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.0134, allocations: 0 / 326.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.0134, allocations: 4 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000262/0.01367, allocations: 240.8 kB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.675e-05/0.01374, allocations: 39.83 kB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.901e-05/0.01377, allocations: 8 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.904e-05/0.01382, allocations: 8.062 kB / 327.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.088e-05/0.01387, allocations: 7.984 kB / 327.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.0139, allocations: 12 kB / 327.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001444/0.01404, allocations: 197.2 kB / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01404, allocations: 0 / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002289/0.01427, allocations: 39.92 kB / 327.4 MB, free: 12.94 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.00131/0.01558, allocations: 1.201 MB / 328.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002259/0.01581, allocations: 103.9 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.01581, allocations: 0 / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.221e-05/0.01586, allocations: 31.92 kB / 328.8 MB, free: 11.76 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003787/0.01624, allocations: 116.9 kB / 328.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.01802, allocations: 2.143 MB / 331 MB, free: 9.375 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.594e-05/0.01812, allocations: 144.8 kB / 331.2 MB, free: 9.215 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.61e-05/0.0182, allocations: 21.95 kB / 331.2 MB, free: 9.191 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.727e-05/0.01828, allocations: 68.47 kB / 331.3 MB, free: 9.125 MB / 298.7 MB Notification: Performance of SimCode: time 8.51e-07/0.01828, allocations: 0 / 331.3 MB, free: 9.125 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02054/0.03882, allocations: 6.355 MB / 337.6 MB, free: 2.84 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.061/7.1, allocations: 5.734 kB / 337.6 MB, free: 2.836 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.78926e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable upSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv. Warning: Get data of variable upSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv failed! Error: Could not read variable upSample2.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv. Warning: Get data of variable upSample2.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv failed! Error: Could not read variable and1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv. Warning: Get data of variable and1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.94210493657738]