Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.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.001885/0.001885, allocations: 124 kB / 17.79 MB, free: 5.266 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.002312/0.002312, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.476/1.476, allocations: 225.6 MB / 249.1 MB, free: 3.633 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.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 51.92 kB / 365.6 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09161/0.09327, allocations: 52.14 MB / 417.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003563/0.09684, allocations: 2.013 MB / 419.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002098/0.09894, allocations: 1.142 MB / 420.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.09907, allocations: 3.938 kB / 420.9 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008672/0.09994, allocations: 302.5 kB / 421.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005044/0.1004, allocations: 203.3 kB / 421.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008321/0.1013, allocations: 293.4 kB / 421.7 MB, free: 8.703 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004892/0.1018, allocations: 347 kB / 422 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.1019, allocations: 36.39 kB / 422.1 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002514/0.1022, allocations: 143.5 kB / 422.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002546/0.1024, allocations: 163.3 kB / 422.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.398e-05/0.1025, allocations: 16 kB / 422.4 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002162/0.1027, allocations: 87.95 kB / 422.5 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.1028, allocations: 87.67 kB / 422.6 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001442/0.1029, allocations: 119.2 kB / 422.7 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005019/0.1035, allocations: 358.4 kB / 423 MB, free: 7.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1035, allocations: 4 kB / 423 MB, free: 7.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1035, allocations: 0 / 423 MB, free: 7.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.1035, allocations: 0 / 423 MB, free: 7.367 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001061/0.1045, allocations: 0.6609 MB / 423.7 MB, free: 6.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1046, allocations: 8.031 kB / 423.7 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.511e-05/0.1046, allocations: 50.73 kB / 423.8 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.1047, allocations: 36.7 kB / 423.8 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005082/0.1053, allocations: 335.8 kB / 424.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.1053, allocations: 8 kB / 424.1 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.657e-05/0.1053, allocations: 12 kB / 424.1 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003101/0.1056, allocations: 148.1 kB / 424.3 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.1056, allocations: 4 kB / 424.3 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.1056, allocations: 0 / 424.3 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1056, allocations: 4 kB / 424.3 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001811/0.1058, allocations: 71.95 kB / 424.4 MB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008097/0.1066, allocations: 0.4924 MB / 424.9 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.107, allocations: 130.7 kB / 425 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.1071, allocations: 48.77 kB / 425 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.1071, allocations: 4 kB / 425 MB, free: 5.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000252/0.1074, allocations: 109.6 kB / 425.1 MB, free: 5.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.1074, allocations: 0 / 425.1 MB, free: 5.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006304/0.108, allocations: 221.3 kB / 425.4 MB, free: 4.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/0.1081, allocations: 110.8 kB / 425.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000552/0.1087, allocations: 424.5 kB / 425.9 MB, free: 4.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.653e-05/0.1087, allocations: 33.7 kB / 425.9 MB, free: 4.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.1089, allocations: 172 kB / 426.1 MB, free: 4.074 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.845e-05/0.1089, allocations: 39.67 kB / 426.1 MB, free: 4.035 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.484e-05/0.109, allocations: 41.7 kB / 426.2 MB, free: 3.988 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002179/0.1092, allocations: 346.8 kB / 426.5 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001326/0.1093, allocations: 47.92 kB / 426.5 MB, free: 3.594 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.1095, allocations: 104.2 kB / 426.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000223/0.1097, allocations: 109 kB / 426.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1097, allocations: 0 / 426.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003588/0.1101, allocations: 177.3 kB / 426.9 MB, free: 3.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1101, allocations: 4 kB / 426.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1101, allocations: 0 / 426.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.1101, allocations: 7.938 kB / 426.9 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.1103, allocations: 27.92 kB / 427 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.1103, allocations: 4 kB / 427 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.1104, allocations: 19.94 kB / 427 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.1104, allocations: 12 kB / 427 MB, free: 3.105 MB / 350.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.000193/0.1106, allocations: 167.5 kB / 427.2 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.044e-05/0.1106, allocations: 31.81 kB / 427.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.627e-05/0.1107, allocations: 34.94 kB / 427.2 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.1107, allocations: 4 kB / 427.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1107, allocations: 0 / 427.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1107, allocations: 0 / 427.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003137/0.1111, allocations: 309.3 kB / 427.5 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1111, allocations: 0 / 427.5 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.481e-05/0.1111, allocations: 15.94 kB / 427.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1111, allocations: 0 / 427.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.1111, allocations: 7.984 kB / 427.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1111, allocations: 0 / 427.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1111, allocations: 0 / 427.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00038/0.1115, allocations: 207.6 kB / 427.8 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.96e-05/0.1116, allocations: 108.9 kB / 427.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.2e-05/0.1116, allocations: 4 kB / 427.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.042e-05/0.1117, allocations: 11.98 kB / 427.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.468e-05/0.1118, allocations: 7.984 kB / 427.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.1118, allocations: 15.98 kB / 427.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003708/0.1122, allocations: 307 kB / 428.2 MB, free: 1.797 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1122, allocations: 3.938 kB / 428.2 MB, free: 1.793 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003363/0.1125, allocations: 59.88 kB / 428.3 MB, free: 1.734 MB / 350.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.002215/0.1147, allocations: 1.063 MB / 429.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003545/0.1151, allocations: 119.8 kB / 429.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.1151, allocations: 128 / 429.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.1152, allocations: 59.92 kB / 429.5 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005206/0.1158, allocations: 81.31 kB / 429.6 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004427/0.1202, allocations: 2.804 MB / 432.4 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005241/0.1207, allocations: 0.7751 MB / 433.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001773/0.1209, allocations: 46.27 kB / 433.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/0.1211, allocations: 95.39 kB / 433.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1211, allocations: 0 / 433.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03451/0.1556, allocations: 7.211 MB / 440.5 MB, free: 5.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.654/8.809, allocations: 13.53 kB / 440.5 MB, free: 5.562 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable Pre1.u from file Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table1.y in file Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table1.y from file Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table2.y in file Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table2.y from file Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.629394597373903]