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.0008659/0.0008659, allocations: 83.64 kB / 21.43 MB, free: 3.137 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.004163/0.004163, allocations: 164.1 kB / 24.7 MB, free: 9.414 MB / 18.57 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 0.8197/0.8197, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 298.4 MB, free: 3.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.663e-05/1.812e-05, allocations: 2.281 kB / 298.4 MB, free: 3.539 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002376/0.002394, allocations: 1.939 MB / 300.4 MB, free: 1.582 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.003799, allocations: 1.006 MB / 301.4 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.003916, allocations: 4 kB / 301.4 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008952/0.004811, allocations: 323 kB / 301.7 MB, free: 252 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003295/0.00514, allocations: 219.1 kB / 301.9 MB, free: 32 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1276/0.1327, allocations: 256.2 kB / 302.2 MB, free: 13.35 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003906/0.1331, allocations: 346.5 kB / 302.5 MB, free: 13.32 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.1332, allocations: 36.92 kB / 302.5 MB, free: 13.32 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000164/0.1334, allocations: 187.6 kB / 302.7 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001471/0.1335, allocations: 134.1 kB / 302.8 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.807e-05/0.1335, allocations: 18.72 kB / 302.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.1337, allocations: 87.62 kB / 302.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.241e-05/0.1338, allocations: 94.16 kB / 303 MB, free: 13.27 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.462e-05/0.1338, allocations: 68.03 kB / 303.1 MB, free: 13.26 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003255/0.1342, allocations: 356.2 kB / 303.5 MB, free: 13.25 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.1342, allocations: 6.094 kB / 303.5 MB, free: 13.25 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1342, allocations: 0 / 303.5 MB, free: 13.25 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.1342, allocations: 0 / 303.5 MB, free: 13.25 MB / 282.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.0006292/0.1348, allocations: 0.5877 MB / 304 MB, free: 12.79 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.1348, allocations: 13.23 kB / 304.1 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.446e-05/0.1349, allocations: 44.95 kB / 304.1 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.85e-05/0.1349, allocations: 38.89 kB / 304.1 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002611/0.1352, allocations: 267.9 kB / 304.4 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.1352, allocations: 8.5 kB / 304.4 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.528e-05/0.1352, allocations: 13.27 kB / 304.4 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001705/0.1354, allocations: 118.3 kB / 304.5 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1354, allocations: 3.938 kB / 304.5 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.1354, allocations: 7.469 kB / 304.5 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.1354, allocations: 3.875 kB / 304.6 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001106/0.1355, allocations: 80.39 kB / 304.6 MB, free: 12.51 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004317/0.136, allocations: 440.8 kB / 305.1 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.1361, allocations: 129 kB / 305.2 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.515e-05/0.1362, allocations: 50.06 kB / 305.2 MB, free: 12.24 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.58e-05/0.1362, allocations: 1.219 kB / 305.2 MB, free: 12.24 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001686/0.1364, allocations: 109.2 kB / 305.3 MB, free: 12.19 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.793e-06/0.1364, allocations: 0 / 305.3 MB, free: 12.19 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003199/0.1367, allocations: 228.7 kB / 305.6 MB, free: 12.14 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.017e-05/0.1368, allocations: 58.44 kB / 305.6 MB, free: 12.07 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002924/0.137, allocations: 436 kB / 306 MB, free: 11.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.1371, allocations: 36.47 kB / 306.1 MB, free: 11.87 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.505e-05/0.1371, allocations: 166 kB / 306.2 MB, free: 11.73 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.578e-05/0.1372, allocations: 43.52 kB / 306.3 MB, free: 11.7 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.293e-05/0.1372, allocations: 43.7 kB / 306.3 MB, free: 11.67 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.381e-05/0.1372, allocations: 344 kB / 306.7 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.445e-05/0.1373, allocations: 46.66 kB / 306.7 MB, free: 11.33 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.069e-05/0.1374, allocations: 145.6 kB / 306.9 MB, free: 11.21 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001215/0.1375, allocations: 119.6 kB / 307 MB, free: 11.14 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.1375, allocations: 0.625 kB / 307 MB, free: 11.14 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001994/0.1377, allocations: 184.2 kB / 307.2 MB, free: 11.05 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.1377, allocations: 6 kB / 307.2 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1377, allocations: 1.938 kB / 307.2 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.1377, allocations: 9.375 kB / 307.2 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.438e-05/0.1378, allocations: 21.83 kB / 307.2 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.1378, allocations: 6 kB / 307.2 MB, free: 11.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.692e-05/0.1379, allocations: 23.42 kB / 307.2 MB, free: 11.03 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-06/0.1379, allocations: 9.219 kB / 307.2 MB, free: 11.03 MB / 282.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 9.022e-05/0.138, allocations: 167.5 kB / 307.4 MB, free: 10.89 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.39e-05/0.138, allocations: 30.27 kB / 307.4 MB, free: 10.88 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002333/0.1382, allocations: 200.8 kB / 307.6 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.1382, allocations: 6.625 kB / 307.6 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1382, allocations: 4.547 kB / 307.6 MB, free: 10.78 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.289e-06/0.1383, allocations: 1.312 kB / 307.6 MB, free: 10.78 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/0.1384, allocations: 259.2 kB / 307.9 MB, free: 10.58 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1384, allocations: 0 / 307.9 MB, free: 10.58 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.803e-05/0.1384, allocations: 11.3 kB / 307.9 MB, free: 10.58 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.1384, allocations: 1.031 kB / 307.9 MB, free: 10.58 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.1384, allocations: 2.578 kB / 307.9 MB, free: 10.58 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1384, allocations: 1.25 kB / 307.9 MB, free: 10.58 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.1385, allocations: 5.859 kB / 307.9 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002006/0.1387, allocations: 223.8 kB / 308.1 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.891e-05/0.1387, allocations: 31.98 kB / 308.2 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.319e-05/0.1387, allocations: 5.797 kB / 308.2 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.039e-05/0.1387, allocations: 7.75 kB / 308.2 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.64e-05/0.1388, allocations: 24.11 kB / 308.2 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.1388, allocations: 7.641 kB / 308.2 MB, free: 10.42 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002065/0.139, allocations: 319.7 kB / 308.5 MB, free: 10.27 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.139, allocations: 0 / 308.5 MB, free: 10.27 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001796/0.1392, allocations: 54.08 kB / 308.6 MB, free: 10.25 MB / 282.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.0008588/0.14, allocations: 1.099 MB / 309.7 MB, free: 9.344 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001953/0.1402, allocations: 118.6 kB / 309.8 MB, free: 9.312 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-06/0.1402, allocations: 0 / 309.8 MB, free: 9.312 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.086e-05/0.1403, allocations: 63.06 kB / 309.8 MB, free: 9.297 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.1406, allocations: 82.66 kB / 309.9 MB, free: 9.262 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002273/0.1429, allocations: 2.872 MB / 312.8 MB, free: 7.516 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/0.143, allocations: 164.7 kB / 313 MB, free: 7.434 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.934e-05/0.1431, allocations: 47.69 kB / 313 MB, free: 7.418 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.541e-05/0.1432, allocations: 95.81 kB / 313.1 MB, free: 7.352 MB / 282.7 MB Notification: Performance of SimCode: time 5.01e-07/0.1432, allocations: 0 / 313.1 MB, free: 7.352 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01876/0.1619, allocations: 8.128 MB / 321.2 MB, free: 4.266 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.247/7.409, allocations: 1.312 kB / 321.2 MB, free: 4.266 MB / 282.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/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: 9.112171781249344]