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.00197/0.00197, allocations: 109.5 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.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.002223/0.002223, allocations: 183.9 kB / 23.72 MB, free: 4.699 MB / 14.72 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 1.485/1.485, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001574/0.001574, allocations: 51.86 kB / 370.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2736, allocations: 52.18 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003847/0.2775, allocations: 2.014 MB / 424.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002084/0.2795, allocations: 1.126 MB / 425.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.2797, allocations: 11.88 kB / 425.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006322/0.2803, allocations: 162.2 kB / 425.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003409/0.2807, allocations: 123.5 kB / 426.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007102/0.2814, allocations: 251 kB / 426.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000308/0.2817, allocations: 223.4 kB / 426.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.2818, allocations: 32.58 kB / 426.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001438/0.282, allocations: 95.61 kB / 426.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/0.2821, allocations: 107.5 kB / 426.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.373e-05/0.2821, allocations: 12 kB / 426.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001413/0.2823, allocations: 55.95 kB / 426.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.074e-05/0.2824, allocations: 55.83 kB / 426.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.2825, allocations: 87.41 kB / 427 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003614/0.2828, allocations: 255.3 kB / 427.2 MB, free: 9.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.2828, allocations: 8 kB / 427.2 MB, free: 9.961 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2828, allocations: 0 / 427.2 MB, free: 9.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.2829, allocations: 0 / 427.2 MB, free: 9.961 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008229/0.2837, allocations: 490.5 kB / 427.7 MB, free: 9.445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.2837, allocations: 12.03 kB / 427.7 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.469e-05/0.2838, allocations: 50.67 kB / 427.8 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.081e-05/0.2838, allocations: 24.8 kB / 427.8 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003723/0.2842, allocations: 225 kB / 428 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.193e-05/0.2842, allocations: 16.31 kB / 428 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.128e-05/0.2843, allocations: 15.94 kB / 428 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005545/0.2848, allocations: 297.9 kB / 428.3 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.2848, allocations: 0 / 428.3 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.2849, allocations: 4 kB / 428.3 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.2849, allocations: 0 / 428.3 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001493/0.285, allocations: 59.97 kB / 428.4 MB, free: 8.703 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005714/0.2856, allocations: 361.4 kB / 428.7 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00034/0.2859, allocations: 168 kB / 428.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.2861, allocations: 74.55 kB / 429 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.869e-05/0.2861, allocations: 19.86 kB / 429 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001771/0.2863, allocations: 67.39 kB / 429.1 MB, free: 7.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.593e-06/0.2863, allocations: 4 kB / 429.1 MB, free: 7.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005148/0.2868, allocations: 233.4 kB / 429.3 MB, free: 7.691 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.2869, allocations: 140.5 kB / 429.4 MB, free: 7.523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.2872, allocations: 276.8 kB / 429.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.2872, allocations: 33.7 kB / 429.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.866e-05/0.2873, allocations: 112.6 kB / 429.8 MB, free: 7.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.32e-05/0.2874, allocations: 31.78 kB / 429.9 MB, free: 7.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.014e-05/0.2874, allocations: 57.89 kB / 429.9 MB, free: 6.996 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.2876, allocations: 338.8 kB / 430.3 MB, free: 6.656 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.875e-05/0.2877, allocations: 40.45 kB / 430.3 MB, free: 6.617 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.2879, allocations: 163.2 kB / 430.5 MB, free: 6.398 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002748/0.2882, allocations: 199.2 kB / 430.7 MB, free: 6.148 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2882, allocations: 4 kB / 430.7 MB, free: 6.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003614/0.2885, allocations: 225.1 kB / 430.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.2886, allocations: 8 kB / 430.9 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.2886, allocations: 4 kB / 430.9 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.853e-05/0.2886, allocations: 4.531 kB / 430.9 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.758e-05/0.2887, allocations: 27.92 kB / 430.9 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.2887, allocations: 11.94 kB / 430.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.2888, allocations: 27.81 kB / 431 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.2888, allocations: 8.312 kB / 431 MB, free: 5.828 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * 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 (28): * Single equations (assignments): 28 * 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.0001763/0.289, allocations: 167.9 kB / 431.1 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002184/0.2892, allocations: 125.5 kB / 431.3 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000246/0.2895, allocations: 111.9 kB / 431.4 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.2895, allocations: 11.94 kB / 431.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2895, allocations: 0 / 431.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.2895, allocations: 7.922 kB / 431.4 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002318/0.2897, allocations: 216.5 kB / 431.6 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2897, allocations: 3.938 kB / 431.6 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.015e-05/0.2898, allocations: 11.98 kB / 431.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2898, allocations: 0 / 431.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.2898, allocations: 8 kB / 431.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.2898, allocations: 0 / 431.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2898, allocations: 0 / 431.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003654/0.2902, allocations: 230.5 kB / 431.8 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.142e-05/0.2903, allocations: 43.83 kB / 431.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.576e-05/0.2903, allocations: 4 kB / 431.9 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.852e-05/0.2904, allocations: 4 kB / 431.9 MB, free: 4.812 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.707e-05/0.2904, allocations: 7.984 kB / 431.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.2904, allocations: 8 kB / 431.9 MB, free: 4.797 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002317/0.2907, allocations: 204.4 kB / 432.1 MB, free: 4.598 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2907, allocations: 0 / 432.1 MB, free: 4.598 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003275/0.291, allocations: 47.92 kB / 432.2 MB, free: 4.551 MB / 334.1 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 (22): * Single equations (assignments): 20 * 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.002399/0.2934, allocations: 1.162 MB / 433.3 MB, free: 3.516 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003387/0.2937, allocations: 131.7 kB / 433.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.2937, allocations: 5.062 kB / 433.5 MB, free: 3.383 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.273e-05/0.2938, allocations: 23.98 kB / 433.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005223/0.2943, allocations: 122.1 kB / 433.6 MB, free: 3.246 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003092/0.2974, allocations: 2.362 MB / 436 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004423/0.2979, allocations: 0.7556 MB / 436.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.773e-05/0.2979, allocations: 29.94 kB / 436.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.2981, allocations: 71.41 kB / 436.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.2981, allocations: 3.938 kB / 436.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03282/0.3309, allocations: 5.845 MB / 442.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.31, allocations: 7.375 kB / 442.7 MB, free: 10.04 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/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: 14.00429833599992]