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.001496/0.001496, allocations: 111.1 kB / 20.44 MB, free: 1.336 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.001681/0.001681, allocations: 211.6 kB / 23.73 MB, free: 4.516 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.496/1.496, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001513/0.001513, allocations: 48.02 kB / 377.7 MB, free: 3.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2528, allocations: 53.37 MB / 431.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004117/0.2569, allocations: 1.98 MB / 433 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002408/0.2593, allocations: 1.224 MB / 434.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001184/0.2594, allocations: 4 kB / 434.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009216/0.2603, allocations: 307.1 kB / 434.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006262/0.261, allocations: 263.1 kB / 434.8 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006322/0.2616, allocations: 241.8 kB / 435.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004575/0.2621, allocations: 363 kB / 435.4 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.2622, allocations: 40.91 kB / 435.5 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002108/0.2624, allocations: 147.4 kB / 435.6 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002167/0.2626, allocations: 167.3 kB / 435.8 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.714e-05/0.2627, allocations: 16 kB / 435.8 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002113/0.2629, allocations: 87.94 kB / 435.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.263, allocations: 95.66 kB / 436 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.2631, allocations: 99.34 kB / 436.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004935/0.2636, allocations: 370.8 kB / 436.4 MB, free: 1.457 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2636, allocations: 0 / 436.4 MB, free: 1.457 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2636, allocations: 4 kB / 436.4 MB, free: 1.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.2636, allocations: 0 / 436.4 MB, free: 1.453 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.001081/0.2647, allocations: 0.601 MB / 437 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.2647, allocations: 12.03 kB / 437 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.338e-05/0.2648, allocations: 46.67 kB / 437.1 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.029e-05/0.2649, allocations: 36.7 kB / 437.1 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004501/0.2653, allocations: 268.9 kB / 437.4 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.2653, allocations: 12.38 kB / 437.4 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.659e-05/0.2654, allocations: 15.94 kB / 437.4 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002639/0.2656, allocations: 125.5 kB / 437.5 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.2657, allocations: 0 / 437.5 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.2657, allocations: 3.984 kB / 437.5 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2657, allocations: 4 kB / 437.5 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.2659, allocations: 81.44 kB / 437.6 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007505/0.2666, allocations: 439.5 kB / 438.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003281/0.2669, allocations: 130.7 kB / 438.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.267, allocations: 52.83 kB / 438.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.2671, allocations: 0 / 438.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002469/0.2673, allocations: 119.3 kB / 438.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.2673, allocations: 0 / 438.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005279/0.2678, allocations: 228.4 kB / 438.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.2679, allocations: 55.34 kB / 438.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005439/0.2684, allocations: 469.5 kB / 439.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.2685, allocations: 29.7 kB / 439.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.2686, allocations: 176 kB / 439.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.894e-05/0.2687, allocations: 47.67 kB / 439.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.556e-05/0.2687, allocations: 41.7 kB / 439.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.2689, allocations: 342.8 kB / 439.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.269, allocations: 51.92 kB / 439.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001896/0.2692, allocations: 145.7 kB / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002264/0.2694, allocations: 110.5 kB / 440 MB, free: 13.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2694, allocations: 8.031 kB / 440 MB, free: 13.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003348/0.2698, allocations: 181.3 kB / 440.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.2698, allocations: 11.94 kB / 440.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2698, allocations: 0 / 440.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.2698, allocations: 0 / 440.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.2699, allocations: 27.98 kB / 440.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.698e-05/0.27, allocations: 0 / 440.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.2701, allocations: 11.95 kB / 440.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.2701, allocations: 15.92 kB / 440.3 MB, free: 13.38 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.000163/0.2702, allocations: 167.6 kB / 440.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.968e-05/0.2703, allocations: 31.75 kB / 440.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003986/0.2707, allocations: 204.4 kB / 440.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.2707, allocations: 7.984 kB / 440.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2707, allocations: 0 / 440.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.2707, allocations: 0 / 440.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003305/0.271, allocations: 260.5 kB / 440.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.271, allocations: 0 / 440.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.172e-05/0.2711, allocations: 12 kB / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.2711, allocations: 7.938 kB / 440.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.2711, allocations: 0 / 440.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.2711, allocations: 7.984 kB / 440.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.2711, allocations: 3.984 kB / 440.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000371/0.2715, allocations: 227.3 kB / 441.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.204e-05/0.2715, allocations: 35.69 kB / 441.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.2716, allocations: 11.98 kB / 441.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.162e-05/0.2717, allocations: 4 kB / 441.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.36e-05/0.2717, allocations: 15.97 kB / 441.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.2717, allocations: 19.94 kB / 441.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003737/0.2721, allocations: 331.1 kB / 441.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2721, allocations: 0 / 441.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00029/0.2724, allocations: 51.92 kB / 441.6 MB, free: 11.94 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.002225/0.2746, allocations: 1.11 MB / 442.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003158/0.2749, allocations: 127.8 kB / 442.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2749, allocations: 4.125 kB / 442.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000141/0.2751, allocations: 59.92 kB / 442.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004253/0.2755, allocations: 75.73 kB / 443 MB, free: 10.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003789/0.2793, allocations: 2.892 MB / 445.9 MB, free: 7.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001872/0.2795, allocations: 182.1 kB / 446.1 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000125/0.2796, allocations: 38.27 kB / 446.1 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/0.2798, allocations: 103.4 kB / 446.2 MB, free: 7.414 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2798, allocations: 4 kB / 446.2 MB, free: 7.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03782/0.3176, allocations: 8.198 MB / 454.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.5, allocations: 7.031 kB / 454.4 MB, free: 15.29 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.159403538011247]