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.001569/0.001569, allocations: 124.1 kB / 17.79 MB, free: 5.25 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.001785/0.001785, allocations: 198.8 kB / 20.73 MB, free: 2.309 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.462/1.462, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.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.001455/0.001455, allocations: 55.91 kB / 365.6 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09483/0.09629, allocations: 52.14 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.00362/0.09991, allocations: 1.992 MB / 419.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001906/0.1018, allocations: 1.122 MB / 420.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.102, allocations: 3.938 kB / 420.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006689/0.1026, allocations: 155.5 kB / 421 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003479/0.103, allocations: 123.4 kB / 421.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000812/0.1038, allocations: 249.8 kB / 421.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003172/0.1041, allocations: 215.5 kB / 421.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.1043, allocations: 40.28 kB / 421.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001477/0.1044, allocations: 103.5 kB / 421.8 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.1045, allocations: 99.53 kB / 421.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.941e-05/0.1046, allocations: 12 kB / 421.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001618/0.1047, allocations: 51.97 kB / 421.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.58e-05/0.1048, allocations: 59.75 kB / 422 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.105, allocations: 87.42 kB / 422.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004249/0.1054, allocations: 262.8 kB / 422.3 MB, free: 8.035 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1054, allocations: 0 / 422.3 MB, free: 8.035 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1054, allocations: 0 / 422.3 MB, free: 8.035 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1054, allocations: 0 / 422.3 MB, free: 8.035 MB / 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.0009575/0.1064, allocations: 0.5544 MB / 422.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.1064, allocations: 8.031 kB / 422.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.966e-05/0.1065, allocations: 50.67 kB / 422.9 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.992e-05/0.1065, allocations: 24.8 kB / 423 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004075/0.1069, allocations: 286.9 kB / 423.2 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.107, allocations: 16.38 kB / 423.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.162e-05/0.107, allocations: 15.94 kB / 423.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005614/0.1076, allocations: 295 kB / 423.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.1076, allocations: 0 / 423.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.617e-05/0.1076, allocations: 8 kB / 423.6 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.269e-06/0.1076, allocations: 0 / 423.6 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001543/0.1078, allocations: 59.91 kB / 423.6 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005296/0.1083, allocations: 386.3 kB / 424 MB, free: 6.176 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.1086, allocations: 167.9 kB / 424.2 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.1088, allocations: 78.55 kB / 424.2 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.1088, allocations: 8.062 kB / 424.2 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001554/0.1089, allocations: 71.39 kB / 424.3 MB, free: 5.809 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.1089, allocations: 0 / 424.3 MB, free: 5.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005038/0.1094, allocations: 229.3 kB / 424.5 MB, free: 5.578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.1096, allocations: 148.8 kB / 424.7 MB, free: 5.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.1099, allocations: 276.9 kB / 425 MB, free: 5.117 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.1099, allocations: 29.7 kB / 425 MB, free: 5.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.391e-05/0.11, allocations: 116.6 kB / 425.1 MB, free: 4.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.907e-05/0.11, allocations: 43.7 kB / 425.1 MB, free: 4.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.138e-05/0.1101, allocations: 53.89 kB / 425.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.1103, allocations: 338.8 kB / 425.5 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.887e-05/0.1104, allocations: 36.45 kB / 425.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.1106, allocations: 170.8 kB / 425.7 MB, free: 4.262 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/0.1109, allocations: 199.5 kB / 425.9 MB, free: 4.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1109, allocations: 4 kB / 425.9 MB, free: 4.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003899/0.1112, allocations: 221.1 kB / 426.1 MB, free: 3.785 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.1113, allocations: 10.19 kB / 426.2 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.1113, allocations: 4 kB / 426.2 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.1113, allocations: 4 kB / 426.2 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.1114, allocations: 31.86 kB / 426.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.1114, allocations: 8.531 kB / 426.2 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.1115, allocations: 27.88 kB / 426.2 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.1116, allocations: 8 kB / 426.2 MB, free: 3.695 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.0001977/0.1118, allocations: 168.9 kB / 426.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/0.112, allocations: 125.5 kB / 426.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.299e-05/0.1121, allocations: 25.72 kB / 426.5 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/0.1121, allocations: 7.984 kB / 426.6 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1121, allocations: 0 / 426.6 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.1121, allocations: 7.938 kB / 426.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002675/0.1123, allocations: 249.5 kB / 426.8 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1123, allocations: 0 / 426.8 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.438e-05/0.1124, allocations: 15.92 kB / 426.8 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1124, allocations: 0 / 426.8 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.1124, allocations: 8 kB / 426.8 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1124, allocations: 0 / 426.8 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1124, allocations: 0 / 426.8 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000388/0.1128, allocations: 226.5 kB / 427.1 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.1129, allocations: 120.9 kB / 427.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.9e-05/0.113, allocations: 8 kB / 427.2 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.122e-05/0.113, allocations: 11.98 kB / 427.2 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.842e-05/0.1131, allocations: 4 kB / 427.2 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-05/0.1131, allocations: 8.078 kB / 427.2 MB, free: 2.621 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002175/0.1133, allocations: 204.3 kB / 427.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1133, allocations: 0 / 427.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003427/0.1137, allocations: 51.86 kB / 427.5 MB, free: 2.371 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.002326/0.116, allocations: 1.148 MB / 428.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003407/0.1163, allocations: 139.7 kB / 428.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.1163, allocations: 7.938 kB / 428.7 MB, free: 1.207 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.886e-05/0.1164, allocations: 16 kB / 428.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004988/0.1169, allocations: 122.2 kB / 428.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003069/0.12, allocations: 2.38 MB / 431.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.1204, allocations: 0.7556 MB / 432 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001102/0.1205, allocations: 34.16 kB / 432 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.1206, allocations: 63.41 kB / 432.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of SimCode: time 8.41e-07/0.1206, allocations: 0 / 432.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03045/0.151, allocations: 5.585 MB / 437.7 MB, free: 8.145 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.463/8.614, allocations: 7.922 kB / 437.7 MB, free: 8.137 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.503561405930668]