Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.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.0008396/0.0008396, allocations: 79.7 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.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.000969/0.000969, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8974/0.8974, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.452e-06/1.452e-06, allocations: 0 / 324.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.86e-05/2.005e-05, allocations: 2.281 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002498/0.002518, allocations: 1.989 MB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.003993, allocations: 1.227 MB / 327.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.00411, allocations: 7.938 kB / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006851/0.004795, allocations: 307.1 kB / 328.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004043/0.005199, allocations: 270.9 kB / 328.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004674/0.005667, allocations: 236.2 kB / 328.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003501/0.006017, allocations: 363 kB / 328.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.006157, allocations: 32.91 kB / 329 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002115/0.006369, allocations: 199.5 kB / 329.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001624/0.006531, allocations: 139.6 kB / 329.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.025e-05/0.006561, allocations: 16 kB / 329.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.006743, allocations: 91.86 kB / 329.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.006844, allocations: 87.69 kB / 329.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.217e-05/0.006926, allocations: 79.7 kB / 329.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004076/0.007334, allocations: 362.8 kB / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.007339, allocations: 4 kB / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.00734, allocations: 0 / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.007348, allocations: 0 / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007631/0.008111, allocations: 0.6081 MB / 330.5 MB, free: 9.902 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.008148, allocations: 8.031 kB / 330.5 MB, free: 9.895 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.172e-05/0.00819, allocations: 46.73 kB / 330.6 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.075e-05/0.008251, allocations: 36.7 kB / 330.6 MB, free: 9.805 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003182/0.008569, allocations: 272.1 kB / 330.9 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.008588, allocations: 12.23 kB / 330.9 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.686e-05/0.008604, allocations: 16.38 kB / 330.9 MB, free: 9.484 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002043/0.008809, allocations: 123 kB / 331 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.008818, allocations: 0 / 331 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.008831, allocations: 3.984 kB / 331 MB, free: 9.355 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.008837, allocations: 4 kB / 331 MB, free: 9.352 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001116/0.008948, allocations: 70.41 kB / 331.1 MB, free: 9.285 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005224/0.009471, allocations: 447.5 kB / 331.5 MB, free: 8.805 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002184/0.009689, allocations: 134.7 kB / 331.7 MB, free: 8.664 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.473e-05/0.009754, allocations: 40.84 kB / 331.7 MB, free: 8.621 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.009771, allocations: 4 kB / 331.7 MB, free: 8.617 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001742/0.009945, allocations: 121.8 kB / 331.8 MB, free: 8.488 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.893e-06/0.009947, allocations: 0 / 331.8 MB, free: 8.488 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003605/0.01031, allocations: 229.2 kB / 332.1 MB, free: 8.258 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.01034, allocations: 59.41 kB / 332.1 MB, free: 8.188 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000339/0.01068, allocations: 453.6 kB / 332.6 MB, free: 7.738 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.0107, allocations: 37.7 kB / 332.6 MB, free: 7.695 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.785e-05/0.0108, allocations: 183.9 kB / 332.8 MB, free: 7.512 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.014e-05/0.01083, allocations: 35.69 kB / 332.8 MB, free: 7.477 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.534e-05/0.01087, allocations: 41.7 kB / 332.8 MB, free: 7.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.36e-05/0.01097, allocations: 346.8 kB / 333.2 MB, free: 7.082 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.861e-05/0.01104, allocations: 47.97 kB / 333.2 MB, free: 7.035 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.01115, allocations: 143.7 kB / 333.4 MB, free: 6.867 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001278/0.01128, allocations: 113.1 kB / 333.5 MB, free: 6.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.01128, allocations: 4.031 kB / 333.5 MB, free: 6.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001992/0.01148, allocations: 185.3 kB / 333.7 MB, free: 6.559 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.01149, allocations: 4 kB / 333.7 MB, free: 6.555 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.0115, allocations: 3.984 kB / 333.7 MB, free: 6.551 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.01151, allocations: 7.938 kB / 333.7 MB, free: 6.543 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.089e-05/0.01159, allocations: 23.92 kB / 333.7 MB, free: 6.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.0116, allocations: 4 kB / 333.7 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.072e-05/0.01166, allocations: 15.89 kB / 333.7 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.01167, allocations: 12.06 kB / 333.7 MB, free: 6.488 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: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001193/0.01179, allocations: 175.8 kB / 333.9 MB, free: 6.309 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.647e-05/0.01182, allocations: 31.81 kB / 333.9 MB, free: 6.277 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002576/0.01207, allocations: 207 kB / 334.1 MB, free: 6.066 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.01208, allocations: 3.938 kB / 334.1 MB, free: 6.062 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.01208, allocations: 4 kB / 334.2 MB, free: 6.059 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.01209, allocations: 3.984 kB / 334.2 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001751/0.01226, allocations: 252.5 kB / 334.4 MB, free: 5.766 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.01226, allocations: 0 / 334.4 MB, free: 5.766 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.223e-05/0.0123, allocations: 19.98 kB / 334.4 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.0123, allocations: 0 / 334.4 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.01231, allocations: 4 kB / 334.4 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.01231, allocations: 3.938 kB / 334.4 MB, free: 5.738 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01231, allocations: 0 / 334.4 MB, free: 5.738 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000202/0.01251, allocations: 224.7 kB / 334.7 MB, free: 5.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.207e-05/0.01255, allocations: 31.81 kB / 334.7 MB, free: 5.469 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.01257, allocations: 0 / 334.7 MB, free: 5.469 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.313e-05/0.01261, allocations: 19.92 kB / 334.7 MB, free: 5.449 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.253e-05/0.01266, allocations: 19.97 kB / 334.7 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.01268, allocations: 4 kB / 334.7 MB, free: 5.426 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002243/0.0129, allocations: 335.1 kB / 335.1 MB, free: 5.102 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0129, allocations: 3.938 kB / 335.1 MB, free: 5.098 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000207/0.01311, allocations: 55.88 kB / 335.1 MB, free: 5.043 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001103/0.01421, allocations: 1.098 MB / 336.2 MB, free: 4.102 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002121/0.01442, allocations: 120 kB / 336.3 MB, free: 3.984 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.01443, allocations: 4 kB / 336.3 MB, free: 3.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.339e-05/0.01451, allocations: 66.72 kB / 336.4 MB, free: 3.918 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.01478, allocations: 79.69 kB / 336.5 MB, free: 3.848 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002437/0.01721, allocations: 2.922 MB / 339.4 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001109/0.01732, allocations: 174.2 kB / 339.6 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.975e-05/0.01742, allocations: 54.25 kB / 339.6 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.01754, allocations: 104.5 kB / 339.7 MB, free: 488 kB / 298.7 MB Notification: Performance of SimCode: time 8.31e-07/0.01754, allocations: 0 / 339.7 MB, free: 488 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/0.0408, allocations: 8.297 MB / 348 MB, free: 8.25 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.388/7.429, allocations: 13.12 kB / 348 MB, free: 8.246 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00199601 Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Pre1.u in file Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable Pre1.u from file Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table1.y in file Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table1.y from file Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table2.y in file Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table2.y from file Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.239651337265968]