Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00171/0.00171, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002172/0.002172, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.483/1.483, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 55.91 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1163, allocations: 53.33 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.004156/0.1205, allocations: 2.012 MB / 428.3 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002344/0.1228, allocations: 1.262 MB / 429.6 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.123, allocations: 11.88 kB / 429.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006492/0.1236, allocations: 155.5 kB / 429.8 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004226/0.124, allocations: 171.3 kB / 429.9 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000606/0.1246, allocations: 206.8 kB / 430.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003219/0.125, allocations: 227.4 kB / 430.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.1251, allocations: 32.3 kB / 430.4 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/0.1252, allocations: 99.56 kB / 430.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.1254, allocations: 103.5 kB / 430.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.021e-05/0.1254, allocations: 16 kB / 430.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001528/0.1256, allocations: 63.91 kB / 430.7 MB, free: 444 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.1257, allocations: 51.83 kB / 430.7 MB, free: 392 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.1258, allocations: 95.39 kB / 430.8 MB, free: 296 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003858/0.1262, allocations: 262.8 kB / 431.1 MB, free: 32 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.1262, allocations: 0 / 431.1 MB, free: 32 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1262, allocations: 0 / 431.1 MB, free: 32 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.1262, allocations: 0 / 431.1 MB, free: 32 kB / 350.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.224/0.3502, allocations: 0.559 MB / 431.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.3503, allocations: 9.969 kB / 431.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.362e-05/0.3503, allocations: 46.05 kB / 431.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.604e-05/0.3504, allocations: 31.06 kB / 431.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003915/0.3508, allocations: 289 kB / 432 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.3508, allocations: 14.53 kB / 432 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.047e-05/0.3509, allocations: 13.47 kB / 432 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005961/0.3515, allocations: 303.1 kB / 432.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.3515, allocations: 4.688 kB / 432.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.3515, allocations: 2.297 kB / 432.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.567e-06/0.3515, allocations: 6.844 kB / 432.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001672/0.3517, allocations: 60.36 kB / 432.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004561/0.3521, allocations: 389.8 kB / 432.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003166/0.3524, allocations: 163.7 kB / 432.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.3526, allocations: 82.45 kB / 433 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.029e-05/0.3526, allocations: 8.953 kB / 433 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000148/0.3527, allocations: 71.78 kB / 433.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.3527, allocations: 0 / 433.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.000516/0.3533, allocations: 227.2 kB / 433.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.307e-05/0.3533, allocations: 149.4 kB / 433.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000267/0.3536, allocations: 285.6 kB / 433.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.3536, allocations: 31.55 kB / 433.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.344e-05/0.3537, allocations: 119.4 kB / 433.9 MB, free: 9.934 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.984e-05/0.3537, allocations: 31.47 kB / 433.9 MB, free: 9.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.447e-05/0.3538, allocations: 49.75 kB / 433.9 MB, free: 9.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.426e-05/0.3538, allocations: 343.5 kB / 434.3 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.688e-05/0.3539, allocations: 34.53 kB / 434.3 MB, free: 9.586 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/0.3541, allocations: 171.3 kB / 434.5 MB, free: 9.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000217/0.3543, allocations: 202.1 kB / 434.7 MB, free: 9.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3543, allocations: 1.375 kB / 434.7 MB, free: 9.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003489/0.3546, allocations: 222.8 kB / 434.9 MB, free: 9.234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.3547, allocations: 7.625 kB / 434.9 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.3547, allocations: 4.531 kB / 434.9 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.3547, allocations: 5.5 kB / 434.9 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.984e-05/0.3548, allocations: 25.66 kB / 434.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.3548, allocations: 8.703 kB / 434.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.3549, allocations: 20.64 kB / 435 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.3549, allocations: 14.12 kB / 435 MB, free: 9.219 MB / 350.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.0001327/0.3551, allocations: 169.4 kB / 435.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002009/0.3553, allocations: 130 kB / 435.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.903e-05/0.3553, allocations: 32.88 kB / 435.3 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.3553, allocations: 3.406 kB / 435.3 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.3553, allocations: 3.688 kB / 435.3 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.3554, allocations: 1.125 kB / 435.3 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001936/0.3555, allocations: 260.5 kB / 435.6 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3555, allocations: 0 / 435.6 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.769e-05/0.3556, allocations: 14.12 kB / 435.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.3556, allocations: 1.531 kB / 435.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.3556, allocations: 8.5 kB / 435.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3556, allocations: 5.25 kB / 435.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3556, allocations: 0 / 435.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003862/0.356, allocations: 236.7 kB / 435.8 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.3561, allocations: 121.6 kB / 435.9 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.252e-05/0.3561, allocations: 6.344 kB / 436 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.726e-05/0.3562, allocations: 6.938 kB / 436 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.42e-05/0.3563, allocations: 6.547 kB / 436 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.3563, allocations: 9.656 kB / 436 MB, free: 8.602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002129/0.3565, allocations: 205.7 kB / 436.2 MB, free: 8.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3565, allocations: 0 / 436.2 MB, free: 8.488 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003252/0.3568, allocations: 39.81 kB / 436.2 MB, free: 8.48 MB / 350.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.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * 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.002294/0.3591, allocations: 1.151 MB / 437.4 MB, free: 7.711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003712/0.3595, allocations: 146.8 kB / 437.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.3595, allocations: 1.188 kB / 437.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.926e-05/0.3596, allocations: 19.61 kB / 437.5 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000571/0.3602, allocations: 112.3 kB / 437.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002533/0.3627, allocations: 2.415 MB / 440.1 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.363, allocations: 0.7571 MB / 440.8 MB, free: 5.066 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001086/0.3631, allocations: 24.06 kB / 440.8 MB, free: 5.066 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.3632, allocations: 66.33 kB / 440.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3632, allocations: 4 kB / 440.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03345/0.3966, allocations: 5.673 MB / 446.6 MB, free: 4.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.034/8.431, allocations: 5.281 kB / 446.6 MB, free: 4.125 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv. Warning: Get data of variable upSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv failed! Error: Could not read variable upSample2.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv. Warning: Get data of variable upSample2.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv failed! Error: Could not read variable and1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv. Warning: Get data of variable and1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.07866965199355]