Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001736/0.001736, allocations: 114.5 kB / 18.45 MB, free: 4.625 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.002007/0.002007, allocations: 212.3 kB / 21.41 MB, free: 1.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.484/1.484, allocations: 207.6 MB / 231.8 MB, free: 4.055 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 68.52 kB / 342.3 MB, free: 9.992 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08911/0.09087, allocations: 49.11 MB / 391.4 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003647/0.09452, allocations: 2.004 MB / 393.4 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00189/0.09641, allocations: 1.061 MB / 394.5 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.09653, allocations: 7.938 kB / 394.5 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009613/0.09749, allocations: 315.2 kB / 394.8 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005111/0.098, allocations: 211.2 kB / 395 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007478/0.09875, allocations: 255.5 kB / 395.2 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004427/0.09919, allocations: 335.1 kB / 395.6 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.09935, allocations: 48.3 kB / 395.6 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002016/0.09955, allocations: 151.4 kB / 395.8 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000208/0.09976, allocations: 155.4 kB / 395.9 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.925e-05/0.0998, allocations: 20 kB / 395.9 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002092/0.1, allocations: 79.89 kB / 396 MB, free: 4.086 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.1001, allocations: 91.67 kB / 396.1 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.1003, allocations: 119.2 kB / 396.2 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005346/0.1008, allocations: 350.6 kB / 396.5 MB, free: 3.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1008, allocations: 0 / 396.5 MB, free: 3.535 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1008, allocations: 0 / 396.5 MB, free: 3.535 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.1008, allocations: 7.938 kB / 396.6 MB, free: 3.527 MB / 318.1 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.00122/0.102, allocations: 0.6685 MB / 397.2 MB, free: 2.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.1021, allocations: 12.03 kB / 397.2 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.071e-05/0.1021, allocations: 46.69 kB / 397.3 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.365e-05/0.1022, allocations: 40.69 kB / 397.3 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000477/0.1027, allocations: 336.2 kB / 397.7 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.1027, allocations: 4.375 kB / 397.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.101e-05/0.1027, allocations: 15.94 kB / 397.7 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003189/0.1031, allocations: 148 kB / 397.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1031, allocations: 0 / 397.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/0.1031, allocations: 4 kB / 397.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.1031, allocations: 4 kB / 397.8 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.1033, allocations: 75.89 kB / 397.9 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007492/0.104, allocations: 496.2 kB / 398.4 MB, free: 1.527 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003615/0.1044, allocations: 118.8 kB / 398.5 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001289/0.1045, allocations: 52.83 kB / 398.5 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.618e-05/0.1046, allocations: 4 kB / 398.6 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.1048, allocations: 115.2 kB / 398.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.1048, allocations: 0 / 398.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005786/0.1054, allocations: 213.4 kB / 398.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.802e-05/0.1055, allocations: 110.8 kB / 399 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005441/0.1061, allocations: 436.4 kB / 399.4 MB, free: 448 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.1061, allocations: 29.7 kB / 399.4 MB, free: 412 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.1062, allocations: 164.1 kB / 399.6 MB, free: 244 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.38e-05/0.1063, allocations: 39.67 kB / 399.6 MB, free: 204 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.789e-05/0.1063, allocations: 41.7 kB / 399.7 MB, free: 156 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.1065, allocations: 350.7 kB / 400 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.1066, allocations: 43.98 kB / 400.1 MB, free: 15.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.1068, allocations: 105.9 kB / 400.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002179/0.107, allocations: 110.5 kB / 400.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.107, allocations: 4 kB / 400.3 MB, free: 15.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003344/0.1073, allocations: 185.3 kB / 400.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.1073, allocations: 7.938 kB / 400.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1074, allocations: 0 / 400.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.1074, allocations: 4 kB / 400.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.1075, allocations: 19.98 kB / 400.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.199e-05/0.1075, allocations: 4 kB / 400.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.1076, allocations: 19.88 kB / 400.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.1076, allocations: 4.062 kB / 400.5 MB, free: 15.27 MB / 334.1 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.0001718/0.1078, allocations: 175.5 kB / 400.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.849e-05/0.1078, allocations: 31.75 kB / 400.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.074e-05/0.1079, allocations: 42.92 kB / 400.8 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.1079, allocations: 0 / 400.8 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.1079, allocations: 3.938 kB / 400.8 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1079, allocations: 0 / 400.8 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00032/0.1083, allocations: 301.4 kB / 401.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1083, allocations: 0 / 401.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.856e-05/0.1083, allocations: 12 kB / 401.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.1083, allocations: 3.938 kB / 401.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.1083, allocations: 4 kB / 401.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.1083, allocations: 0 / 401.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1083, allocations: 3.938 kB / 401.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003625/0.1087, allocations: 205.5 kB / 401.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.828e-05/0.1088, allocations: 112.8 kB / 401.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.525e-05/0.1088, allocations: 0 / 401.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.794e-05/0.1089, allocations: 19.98 kB / 401.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.989e-05/0.109, allocations: 11.98 kB / 401.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.876e-05/0.109, allocations: 7.938 kB / 401.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003594/0.1093, allocations: 319 kB / 401.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1093, allocations: 0 / 401.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003023/0.1096, allocations: 51.88 kB / 401.8 MB, free: 13.88 MB / 334.1 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,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * 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.002187/0.1118, allocations: 1.059 MB / 402.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003454/0.1122, allocations: 111.9 kB / 403 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1122, allocations: 4 kB / 403 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001589/0.1123, allocations: 55.84 kB / 403 MB, free: 12.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/0.1128, allocations: 78 kB / 403.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003743/0.1165, allocations: 2.816 MB / 405.9 MB, free: 9.641 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004029/0.1169, allocations: 0.7753 MB / 406.7 MB, free: 8.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001484/0.1171, allocations: 50.25 kB / 406.7 MB, free: 8.789 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.1172, allocations: 95.39 kB / 406.8 MB, free: 8.699 MB / 334.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1172, allocations: 0 / 406.8 MB, free: 8.699 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03151/0.1487, allocations: 7.21 MB / 414 MB, free: 1.402 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.238/8.387, allocations: 11.86 kB / 414.1 MB, free: 1.391 MB / 334.1 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable Pre1.u from file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table1.y in file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table1.y from file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table2.y in file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table2.y from file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.992043153994018]