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.001288/0.001288, allocations: 110 kB / 20.43 MB, free: 1.453 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.00146/0.00146, allocations: 210.6 kB / 23.74 MB, free: 4.66 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.422/1.422, allocations: 230.5 MB / 257.4 MB, free: 7.984 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.001932/0.001932, allocations: 63.91 kB / 377.8 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2513, allocations: 53.41 MB / 431.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003734/0.2551, allocations: 2.055 MB / 433.2 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002434/0.2575, allocations: 1.309 MB / 434.5 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001275/0.2576, allocations: 3.938 kB / 434.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009116/0.2586, allocations: 314.7 kB / 434.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006397/0.2592, allocations: 267.1 kB / 435.1 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000607/0.2598, allocations: 223.5 kB / 435.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004584/0.2603, allocations: 363.1 kB / 435.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.2604, allocations: 32.92 kB / 435.7 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002172/0.2606, allocations: 151.4 kB / 435.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000228/0.2609, allocations: 171.3 kB / 436 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.757e-05/0.2609, allocations: 20 kB / 436 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002085/0.2611, allocations: 91.86 kB / 436.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.2612, allocations: 95.67 kB / 436.2 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.2614, allocations: 123.2 kB / 436.4 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004857/0.2618, allocations: 362.8 kB / 436.7 MB, free: 1.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.2618, allocations: 4 kB / 436.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2618, allocations: 0 / 436.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.2619, allocations: 3.938 kB / 436.7 MB, free: 1.121 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.001053/0.2629, allocations: 0.6088 MB / 437.3 MB, free: 480 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.2629, allocations: 16.02 kB / 437.3 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.678e-05/0.263, allocations: 42.75 kB / 437.4 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.462e-05/0.2631, allocations: 36.7 kB / 437.4 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004608/0.2635, allocations: 276.8 kB / 437.7 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.2636, allocations: 12.36 kB / 437.7 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.2636, allocations: 12.38 kB / 437.7 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003218/0.2639, allocations: 159.2 kB / 437.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.2639, allocations: 0 / 437.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.87e-05/0.2639, allocations: 8 kB / 437.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2639, allocations: 3.938 kB / 437.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.2641, allocations: 63.97 kB / 437.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007731/0.2649, allocations: 475.4 kB / 438.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003363/0.2652, allocations: 122.7 kB / 438.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.2653, allocations: 48.2 kB / 438.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.2653, allocations: 0 / 438.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002556/0.2656, allocations: 118.4 kB / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.2656, allocations: 0 / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005413/0.2661, allocations: 229.2 kB / 438.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.046e-05/0.2662, allocations: 106.8 kB / 439 MB, free: 14.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005399/0.2668, allocations: 453.6 kB / 439.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.2668, allocations: 33.7 kB / 439.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.2669, allocations: 176 kB / 439.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.072e-05/0.267, allocations: 35.7 kB / 439.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.267e-05/0.2671, allocations: 49.7 kB / 439.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.2672, allocations: 342.8 kB / 440.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.2674, allocations: 43.97 kB / 440.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.2675, allocations: 100.7 kB / 440.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002175/0.2677, allocations: 106.5 kB / 440.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2677, allocations: 0 / 440.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003495/0.2681, allocations: 185 kB / 440.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.2681, allocations: 8 kB / 440.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2681, allocations: 0 / 440.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.2681, allocations: 3.938 kB / 440.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.2683, allocations: 31.98 kB / 440.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.2683, allocations: 0 / 440.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.2684, allocations: 23.88 kB / 440.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.2684, allocations: 7.938 kB / 440.6 MB, free: 13 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.0001765/0.2686, allocations: 175.5 kB / 440.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.626e-05/0.2686, allocations: 27.81 kB / 440.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003935/0.269, allocations: 188.4 kB / 441 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.269, allocations: 8 kB / 441 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.269, allocations: 0 / 441 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.269, allocations: 7.984 kB / 441 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003125/0.2693, allocations: 272.5 kB / 441.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2693, allocations: 0 / 441.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.036e-05/0.2694, allocations: 12 kB / 441.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.2694, allocations: 0 / 441.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.2694, allocations: 11.92 kB / 441.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2694, allocations: 3.938 kB / 441.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2694, allocations: 3.938 kB / 441.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003562/0.2698, allocations: 204.8 kB / 441.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.846e-05/0.2698, allocations: 31.77 kB / 441.5 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.28e-05/0.2699, allocations: 7.938 kB / 441.5 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.407e-05/0.2699, allocations: 11.98 kB / 441.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.627e-05/0.27, allocations: 7.984 kB / 441.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.432e-05/0.27, allocations: 15.98 kB / 441.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003804/0.2704, allocations: 327.1 kB / 441.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2704, allocations: 4 kB / 441.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000301/0.2707, allocations: 51.94 kB / 441.9 MB, free: 11.59 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.002156/0.2729, allocations: 1.062 MB / 443 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003165/0.2732, allocations: 115.8 kB / 443.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.2732, allocations: 4 kB / 443.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.2733, allocations: 51.91 kB / 443.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004305/0.2737, allocations: 75.67 kB / 443.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003819/0.2776, allocations: 2.863 MB / 446.1 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004525/0.278, allocations: 0.7792 MB / 446.9 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001382/0.2781, allocations: 42.25 kB / 446.9 MB, free: 6.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.2783, allocations: 99.39 kB / 447 MB, free: 6.5 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2783, allocations: 0 / 447 MB, free: 6.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03788/0.3162, allocations: 7.594 MB / 454.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.57, allocations: 10.22 kB / 454.6 MB, free: 14.95 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.089223749000666]