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.001714/0.001714, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001865/0.001865, allocations: 213 kB / 23.73 MB, free: 4.164 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.626/1.626, allocations: 230.5 MB / 257.4 MB, free: 7.77 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.002232/0.002232, allocations: 67.89 kB / 377.7 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3888/0.391, allocations: 53.4 MB / 431.1 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004767/0.3958, allocations: 1.981 MB / 433.1 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002743/0.3986, allocations: 1.227 MB / 434.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002964/0.3989, allocations: 7.938 kB / 434.3 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001229/0.4001, allocations: 307.1 kB / 434.6 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009065/0.401, allocations: 269.9 kB / 434.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008276/0.4018, allocations: 223.5 kB / 435.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006512/0.4025, allocations: 367 kB / 435.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.4027, allocations: 48.69 kB / 435.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000309/0.403, allocations: 131.5 kB / 435.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002857/0.4033, allocations: 159.3 kB / 435.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.002e-05/0.4033, allocations: 20 kB / 435.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002727/0.4036, allocations: 103.8 kB / 435.9 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.4037, allocations: 79.75 kB / 436 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001612/0.4039, allocations: 107.3 kB / 436.1 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006979/0.4046, allocations: 364.4 kB / 436.5 MB, free: 1.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.4046, allocations: 0 / 436.5 MB, free: 1.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4046, allocations: 0 / 436.5 MB, free: 1.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.248e-05/0.4046, allocations: 0 / 436.5 MB, free: 1.059 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.001452/0.4061, allocations: 0.6088 MB / 437.1 MB, free: 416 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.203e-05/0.4061, allocations: 15.98 kB / 437.1 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.733e-05/0.4062, allocations: 42.73 kB / 437.1 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.4063, allocations: 32.7 kB / 437.2 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005607/0.4069, allocations: 280.8 kB / 437.4 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/0.4069, allocations: 8.375 kB / 437.5 MB, free: 0 / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/0.4069, allocations: 12.42 kB / 437.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003274/0.4073, allocations: 128.6 kB / 437.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.4073, allocations: 0 / 437.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.4073, allocations: 4 kB / 437.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.4073, allocations: 4 kB / 437.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001927/0.4075, allocations: 75.95 kB / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008863/0.4084, allocations: 439.5 kB / 438.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000364/0.4087, allocations: 134.7 kB / 438.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.4089, allocations: 52.22 kB / 438.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.4089, allocations: 0 / 438.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000245/0.4091, allocations: 118.5 kB / 438.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.4091, allocations: 0 / 438.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005836/0.4097, allocations: 233.2 kB / 438.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.4098, allocations: 51.41 kB / 438.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000613/0.4104, allocations: 461.6 kB / 439.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.336e-05/0.4104, allocations: 37.64 kB / 439.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.4106, allocations: 175.9 kB / 439.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.192e-05/0.4106, allocations: 47.67 kB / 439.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.412e-05/0.4107, allocations: 41.7 kB / 439.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.4109, allocations: 342.8 kB / 439.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.411, allocations: 43.97 kB / 439.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.4112, allocations: 158.3 kB / 440 MB, free: 13.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.4114, allocations: 106.6 kB / 440.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4114, allocations: 0 / 440.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004207/0.4118, allocations: 192.4 kB / 440.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.4119, allocations: 7.984 kB / 440.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.4119, allocations: 4 kB / 440.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/0.4119, allocations: 3.938 kB / 440.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.412, allocations: 27.92 kB / 440.3 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.412, allocations: 0 / 440.3 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.4122, allocations: 20.02 kB / 440.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.4122, allocations: 4 kB / 440.3 MB, free: 12.98 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.000228/0.4124, allocations: 171.5 kB / 440.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.785e-05/0.4125, allocations: 31.81 kB / 440.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004549/0.4129, allocations: 204.4 kB / 440.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.4129, allocations: 4 kB / 440.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.4129, allocations: 0 / 440.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.413, allocations: 0 / 440.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003482/0.4133, allocations: 264.5 kB / 441 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.4133, allocations: 0 / 441 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.056e-05/0.4134, allocations: 19.92 kB / 441 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.4134, allocations: 0 / 441 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.189e-05/0.4134, allocations: 7.938 kB / 441 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.4134, allocations: 4 kB / 441 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.4134, allocations: 0 / 441 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004267/0.4138, allocations: 227.5 kB / 441.2 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.82e-05/0.4139, allocations: 31.75 kB / 441.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.745e-05/0.4139, allocations: 11.94 kB / 441.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.88e-05/0.414, allocations: 15.98 kB / 441.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.715e-05/0.4141, allocations: 15.97 kB / 441.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.4141, allocations: 8 kB / 441.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004565/0.4146, allocations: 331.1 kB / 441.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4146, allocations: 0 / 441.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003562/0.415, allocations: 51.94 kB / 441.7 MB, free: 11.54 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 (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.002536/0.4175, allocations: 1.082 MB / 442.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003826/0.4179, allocations: 130.7 kB / 442.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4179, allocations: 0 / 442.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000144/0.418, allocations: 67.91 kB / 443 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004495/0.4185, allocations: 65.97 kB / 443 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004201/0.4227, allocations: 2.899 MB / 445.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002199/0.4229, allocations: 174.3 kB / 446.1 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001785/0.4231, allocations: 46.27 kB / 446.1 MB, free: 7.094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001856/0.4233, allocations: 95.41 kB / 446.2 MB, free: 7 MB / 350.1 MB Notification: Performance of SimCode: time 1.273e-06/0.4233, allocations: 0 / 446.2 MB, free: 7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04438/0.4676, allocations: 8.174 MB / 454.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.75, allocations: 7.922 kB / 454.4 MB, free: 14.87 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.609116336330771]