Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00126/0.00126, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001415/0.001415, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 230.5 MB / 254 MB, free: 15.17 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 63.91 kB / 373 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09575/0.09779, allocations: 53.38 MB / 426.3 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003482/0.1013, allocations: 2.038 MB / 428.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002179/0.1034, allocations: 1.297 MB / 429.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.1036, allocations: 3.938 kB / 429.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008439/0.1044, allocations: 299.2 kB / 430 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000577/0.105, allocations: 259.1 kB / 430.2 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005678/0.1056, allocations: 225.3 kB / 430.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004183/0.106, allocations: 355 kB / 430.8 MB, free: 192 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.1061, allocations: 44.72 kB / 430.8 MB, free: 144 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002147/0.1063, allocations: 155.3 kB / 431 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002156/0.1066, allocations: 163.3 kB / 431.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.268e-05/0.1066, allocations: 20 kB / 431.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001885/0.1068, allocations: 87.88 kB / 431.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.1069, allocations: 87.67 kB / 431.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.107, allocations: 135.2 kB / 431.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004465/0.1075, allocations: 362.4 kB / 431.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1075, allocations: 0 / 431.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1075, allocations: 0 / 431.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.1075, allocations: 0 / 431.8 MB, free: 15.15 MB / 366.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.00102/0.1085, allocations: 0.688 MB / 432.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.1086, allocations: 8.031 kB / 432.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.715e-05/0.1086, allocations: 46.73 kB / 432.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.5e-05/0.1087, allocations: 36.7 kB / 432.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004386/0.1091, allocations: 342.7 kB / 432.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.1092, allocations: 8.375 kB / 433 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.616e-05/0.1092, allocations: 12.31 kB / 433 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003005/0.1095, allocations: 152.2 kB / 433.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.1095, allocations: 0 / 433.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.836e-05/0.1095, allocations: 4 kB / 433.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.1095, allocations: 8 kB / 433.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.1097, allocations: 67.95 kB / 433.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007148/0.1104, allocations: 0.4925 MB / 433.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003364/0.1107, allocations: 130.6 kB / 433.8 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.1108, allocations: 43.59 kB / 433.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.1109, allocations: 0 / 433.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002387/0.1111, allocations: 113.3 kB / 434 MB, free: 12.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.1111, allocations: 0 / 434 MB, free: 12.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005147/0.1116, allocations: 225.2 kB / 434.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.812e-05/0.1117, allocations: 110.8 kB / 434.3 MB, free: 12.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005213/0.1122, allocations: 453.6 kB / 434.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.1123, allocations: 29.7 kB / 434.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.1124, allocations: 176 kB / 434.9 MB, free: 11.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.846e-05/0.1124, allocations: 31.7 kB / 435 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.552e-05/0.1125, allocations: 49.69 kB / 435 MB, free: 11.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1127, allocations: 342.8 kB / 435.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.1128, allocations: 47.97 kB / 435.4 MB, free: 11.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.113, allocations: 97.98 kB / 435.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002109/0.1132, allocations: 108 kB / 435.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1132, allocations: 4 kB / 435.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003328/0.1135, allocations: 182.7 kB / 435.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.1135, allocations: 4 kB / 435.8 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.1135, allocations: 4 kB / 435.8 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.1135, allocations: 7.922 kB / 435.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.1137, allocations: 23.94 kB / 435.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.1137, allocations: 0 / 435.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.1138, allocations: 23.88 kB / 435.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.1138, allocations: 8.062 kB / 435.9 MB, free: 10.84 MB / 366.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.0001844/0.114, allocations: 179.5 kB / 436 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.756e-05/0.114, allocations: 27.81 kB / 436.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.253e-05/0.1141, allocations: 38.91 kB / 436.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1141, allocations: 4.047 kB / 436.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1141, allocations: 3.984 kB / 436.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1141, allocations: 0 / 436.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002956/0.1144, allocations: 309.4 kB / 436.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1144, allocations: 0 / 436.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.597e-05/0.1144, allocations: 8 kB / 436.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.1145, allocations: 4 kB / 436.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.1145, allocations: 11.88 kB / 436.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.1145, allocations: 3.984 kB / 436.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1145, allocations: 0 / 436.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003427/0.1148, allocations: 198.3 kB / 436.6 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.258e-05/0.1149, allocations: 108.9 kB / 436.7 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.067e-05/0.1149, allocations: 15.94 kB / 436.7 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.228e-05/0.115, allocations: 7.984 kB / 436.8 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.926e-05/0.1151, allocations: 15.98 kB / 436.8 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/0.1151, allocations: 4 kB / 436.8 MB, free: 9.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003572/0.1155, allocations: 331.1 kB / 437.1 MB, free: 9.496 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1155, allocations: 0 / 437.1 MB, free: 9.496 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002888/0.1157, allocations: 63.81 kB / 437.2 MB, free: 9.434 MB / 366.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.002098/0.1178, allocations: 1.053 MB / 438.2 MB, free: 8.488 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003191/0.1182, allocations: 111.8 kB / 438.3 MB, free: 8.379 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1182, allocations: 0 / 438.3 MB, free: 8.379 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.1183, allocations: 63.09 kB / 438.4 MB, free: 8.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004157/0.1187, allocations: 81.23 kB / 438.5 MB, free: 8.242 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/0.1223, allocations: 2.858 MB / 441.3 MB, free: 5.281 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/0.1227, allocations: 0.7792 MB / 442.1 MB, free: 4.477 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001401/0.1228, allocations: 58.16 kB / 442.2 MB, free: 4.422 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.123, allocations: 95.41 kB / 442.2 MB, free: 4.328 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.123, allocations: 0 / 442.2 MB, free: 4.328 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2145/0.3374, allocations: 7.381 MB / 449.6 MB, free: 24.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.137/8.475, allocations: 4.297 kB / 449.6 MB, free: 24.16 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable Pre1.u from file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table1.y in file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table1.y from file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table2.y in file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table2.y from file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.965349567937665]