Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.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.000827/0.000827, allocations: 76.06 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.0009073/0.0009073, allocations: 149.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.876/0.876, allocations: 173.4 MB / 200.4 MB, free: 9.422 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.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 318.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.654e-05/1.79e-05, allocations: 2.281 kB / 318.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.00234/0.002358, allocations: 1.868 MB / 320.3 MB, free: 4.344 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.003613, allocations: 1.024 MB / 321.3 MB, free: 3.312 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.003729, allocations: 11.94 kB / 321.3 MB, free: 3.301 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005351/0.004264, allocations: 151.4 kB / 321.5 MB, free: 3.152 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002518/0.004516, allocations: 119.5 kB / 321.6 MB, free: 3.035 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004421/0.004958, allocations: 214 kB / 321.8 MB, free: 2.828 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002277/0.005186, allocations: 191.4 kB / 322 MB, free: 2.641 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.005293, allocations: 29.8 kB / 322 MB, free: 2.609 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.005425, allocations: 103.7 kB / 322.1 MB, free: 2.508 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.00553, allocations: 63.8 kB / 322.2 MB, free: 2.445 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.005554, allocations: 12 kB / 322.2 MB, free: 2.434 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001254/0.005679, allocations: 59.89 kB / 322.3 MB, free: 2.375 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.293e-05/0.005742, allocations: 51.77 kB / 322.3 MB, free: 2.324 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.402e-05/0.005796, allocations: 39.86 kB / 322.3 MB, free: 2.285 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002721/0.006068, allocations: 207.3 kB / 322.6 MB, free: 2.082 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.006071, allocations: 0 / 322.6 MB, free: 2.082 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.006072, allocations: 4 kB / 322.6 MB, free: 2.078 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.006076, allocations: 0 / 322.6 MB, free: 2.078 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.0005828/0.006659, allocations: 457.9 kB / 323 MB, free: 1.598 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.006695, allocations: 8.922 kB / 323 MB, free: 1.59 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.052e-05/0.006725, allocations: 38.75 kB / 323 MB, free: 1.543 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.225e-05/0.006768, allocations: 20.8 kB / 323.1 MB, free: 1.523 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002663/0.007034, allocations: 212.8 kB / 323.3 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.007047, allocations: 4.375 kB / 323.3 MB, free: 1.281 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.007061, allocations: 8.375 kB / 323.3 MB, free: 1.273 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002762/0.007337, allocations: 163 kB / 323.4 MB, free: 1.09 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.007345, allocations: 0 / 323.4 MB, free: 1.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.007354, allocations: 0 / 323.4 MB, free: 1.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.00736, allocations: 4 kB / 323.5 MB, free: 1.086 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.602e-05/0.007437, allocations: 43.91 kB / 323.5 MB, free: 1.043 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004419/0.007878, allocations: 413.6 kB / 323.9 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002123/0.008091, allocations: 130.5 kB / 324 MB, free: 432 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.663e-05/0.008147, allocations: 51.42 kB / 324.1 MB, free: 368 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.008173, allocations: 7.984 kB / 324.1 MB, free: 360 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00015/0.008323, allocations: 89.05 kB / 324.2 MB, free: 252 kB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 1.803e-06/0.008325, allocations: 0 / 324.2 MB, free: 252 kB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003059/0.008631, allocations: 165.7 kB / 324.3 MB, free: 80 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.965e-05/0.00871, allocations: 136.5 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002098/0.00892, allocations: 265.8 kB / 324.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.008939, allocations: 33.7 kB / 324.8 MB, free: 15.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.009083, allocations: 124.3 kB / 324.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.078e-05/0.009103, allocations: 11.84 kB / 324.9 MB, free: 15.47 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.171e-05/0.009145, allocations: 37.64 kB / 324.9 MB, free: 15.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.769e-05/0.009233, allocations: 330.8 kB / 325.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.17e-05/0.009275, allocations: 23.98 kB / 325.3 MB, free: 15.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.09e-05/0.009335, allocations: 77.06 kB / 325.3 MB, free: 14.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.006e-05/0.009415, allocations: 62.59 kB / 325.4 MB, free: 14.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.009418, allocations: 0 / 325.4 MB, free: 14.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001228/0.009541, allocations: 109.8 kB / 325.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.009553, allocations: 7.938 kB / 325.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.009559, allocations: 4 kB / 325.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.00957, allocations: 0 / 325.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.931e-05/0.009629, allocations: 15.94 kB / 325.5 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.009636, allocations: 4 kB / 325.5 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.153e-05/0.009677, allocations: 12.05 kB / 325.6 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.009686, allocations: 7.984 kB / 325.6 MB, free: 14.74 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.085e-05/0.009776, allocations: 138.4 kB / 325.7 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.179e-05/0.009838, allocations: 77.48 kB / 325.8 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001579/0.009996, allocations: 107.5 kB / 325.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.01, allocations: 7.984 kB / 325.9 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.01001, allocations: 0 / 325.9 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.01001, allocations: 4 kB / 325.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001387/0.01015, allocations: 196.6 kB / 326.1 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.01015, allocations: 4.062 kB / 326.1 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.877e-05/0.01017, allocations: 8 kB / 326.1 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.01017, allocations: 3.984 kB / 326.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.01018, allocations: 4 kB / 326.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.01018, allocations: 0 / 326.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.01018, allocations: 0 / 326.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001567/0.01034, allocations: 187.3 kB / 326.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.14e-05/0.01039, allocations: 39.78 kB / 326.3 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.857e-05/0.01041, allocations: 0 / 326.3 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.528e-05/0.01045, allocations: 11.98 kB / 326.3 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.547e-05/0.01048, allocations: 8 kB / 326.3 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.0105, allocations: 7.984 kB / 326.4 MB, free: 13.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002699/0.01077, allocations: 193.2 kB / 326.5 MB, free: 13.67 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01077, allocations: 0 / 326.5 MB, free: 13.67 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001975/0.01096, allocations: 31.98 kB / 326.6 MB, free: 13.64 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,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.001008/0.01197, allocations: 1.054 MB / 327.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000154/0.01213, allocations: 71.91 kB / 327.7 MB, free: 12.67 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.01213, allocations: 0 / 327.7 MB, free: 12.67 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.585e-05/0.01217, allocations: 35.92 kB / 327.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.01245, allocations: 69.19 kB / 327.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.01396, allocations: 1.93 MB / 329.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.962e-05/0.01405, allocations: 128 kB / 329.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.733e-05/0.01412, allocations: 25.62 kB / 329.9 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.43e-05/0.01419, allocations: 48.48 kB / 329.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of SimCode: time 1.142e-06/0.01419, allocations: 0 / 329.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01976/0.03395, allocations: 5.574 MB / 335.5 MB, free: 4.805 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.052/7.086, allocations: 3.938 kB / 335.5 MB, free: 4.801 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.98963e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.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.Hold_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv failed! Error: Could not read variable hold1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv. Warning: Get data of variable hold1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.889906990341842]