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.001301/0.001301, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001444/0.001444, allocations: 217.2 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.44/1.44, allocations: 230.6 MB / 257.5 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001574/0.001574, allocations: 51.91 kB / 377.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2286, allocations: 53.36 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.0034/0.232, allocations: 2.057 MB / 433.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002189/0.2341, allocations: 1.306 MB / 434.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.2343, allocations: 3.938 kB / 434.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008512/0.2351, allocations: 318 kB / 434.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005597/0.2357, allocations: 259.1 kB / 435.1 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005472/0.2362, allocations: 231.1 kB / 435.3 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004159/0.2366, allocations: 363.1 kB / 435.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.2368, allocations: 36.92 kB / 435.7 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000201/0.237, allocations: 155.4 kB / 435.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002143/0.2372, allocations: 163.3 kB / 436 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.471e-05/0.2372, allocations: 20 kB / 436 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002096/0.2374, allocations: 95.86 kB / 436.1 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.2375, allocations: 87.73 kB / 436.2 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.2377, allocations: 123.2 kB / 436.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004568/0.2381, allocations: 370.8 kB / 436.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2381, allocations: 4 kB / 436.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2381, allocations: 0 / 436.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.2381, allocations: 4 kB / 436.7 MB, free: 1.293 MB / 334.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.0009732/0.2391, allocations: 0.6088 MB / 437.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.2391, allocations: 12.03 kB / 437.3 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.902e-05/0.2392, allocations: 38.75 kB / 437.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.083e-05/0.2393, allocations: 40.69 kB / 437.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004369/0.2397, allocations: 280.7 kB / 437.6 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.2397, allocations: 12.38 kB / 437.7 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.795e-05/0.2397, allocations: 19.94 kB / 437.7 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002924/0.24, allocations: 145.7 kB / 437.8 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.24, allocations: 0 / 437.8 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.921e-05/0.2401, allocations: 8 kB / 437.8 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.2401, allocations: 0 / 437.8 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.2403, allocations: 68.03 kB / 437.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007113/0.241, allocations: 467.5 kB / 438.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000334/0.2413, allocations: 126.7 kB / 438.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.2414, allocations: 40.84 kB / 438.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.2414, allocations: 8 kB / 438.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002357/0.2417, allocations: 115.2 kB / 438.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.2417, allocations: 3.938 kB / 438.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005146/0.2422, allocations: 219.9 kB / 438.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.353e-05/0.2423, allocations: 102.8 kB / 439 MB, free: 14.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005442/0.2428, allocations: 457.6 kB / 439.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.2428, allocations: 37.7 kB / 439.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.243, allocations: 168 kB / 439.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.636e-05/0.243, allocations: 43.69 kB / 439.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.508e-05/0.2431, allocations: 45.64 kB / 439.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.2433, allocations: 342.8 kB / 440 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.2434, allocations: 39.97 kB / 440.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/0.2436, allocations: 108.7 kB / 440.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.2438, allocations: 106.5 kB / 440.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2438, allocations: 0 / 440.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003289/0.2441, allocations: 180.4 kB / 440.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.2441, allocations: 19.98 kB / 440.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2441, allocations: 3.938 kB / 440.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.2441, allocations: 0 / 440.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.2443, allocations: 23.94 kB / 440.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.2443, allocations: 3.984 kB / 440.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.2444, allocations: 19.89 kB / 440.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.2444, allocations: 4 kB / 440.5 MB, free: 13.19 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.0001798/0.2446, allocations: 175.5 kB / 440.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.585e-05/0.2446, allocations: 35.8 kB / 440.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000395/0.245, allocations: 196.5 kB / 440.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.245, allocations: 3.984 kB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.245, allocations: 0 / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.245, allocations: 4 kB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002902/0.2453, allocations: 272.5 kB / 441.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.2453, allocations: 0 / 441.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.731e-05/0.2454, allocations: 15.92 kB / 441.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.2454, allocations: 3.938 kB / 441.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.2454, allocations: 12 kB / 441.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2454, allocations: 0 / 441.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2454, allocations: 0 / 441.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003456/0.2457, allocations: 200.8 kB / 441.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.727e-05/0.2458, allocations: 31.7 kB / 441.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.868e-05/0.2458, allocations: 11.98 kB / 441.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.099e-05/0.2459, allocations: 4 kB / 441.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.533e-05/0.246, allocations: 19.97 kB / 441.5 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.246, allocations: 8 kB / 441.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003725/0.2464, allocations: 331.1 kB / 441.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2464, allocations: 0 / 441.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002951/0.2467, allocations: 51.94 kB / 441.9 MB, free: 11.77 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,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 (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.002104/0.2488, allocations: 1.075 MB / 442.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000327/0.2491, allocations: 119.1 kB / 443.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2491, allocations: 0 / 443.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001311/0.2492, allocations: 55.92 kB / 443.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004444/0.2497, allocations: 75.78 kB / 443.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003693/0.2534, allocations: 2.867 MB / 446.1 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.2538, allocations: 0.7869 MB / 446.8 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000131/0.2539, allocations: 50.25 kB / 446.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001521/0.254, allocations: 103.4 kB / 447 MB, free: 6.664 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.254, allocations: 0 / 447 MB, free: 6.664 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03472/0.2888, allocations: 7.577 MB / 454.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.5, allocations: 7.984 kB / 454.6 MB, free: 15.16 MB / 366.1 MB " [Timeout remaining time 648] (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/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_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: 14.118947991999448]