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.001904/0.001904, 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 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.002224/0.002224, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.474/1.474, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.002627/0.002627, allocations: 47.92 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2662, allocations: 53.36 MB / 431.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00375/0.2699, allocations: 1.983 MB / 433 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002347/0.2723, allocations: 1.224 MB / 434.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.2724, allocations: 3.938 kB / 434.3 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008901/0.2733, allocations: 315.1 kB / 434.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007234/0.274, allocations: 263.1 kB / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006384/0.2747, allocations: 234.5 kB / 435.1 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004894/0.2752, allocations: 367 kB / 435.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.2753, allocations: 36.72 kB / 435.5 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002354/0.2756, allocations: 147.5 kB / 435.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002451/0.2758, allocations: 159.3 kB / 435.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.263e-05/0.2758, allocations: 20 kB / 435.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002149/0.2761, allocations: 91.86 kB / 435.9 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.2762, allocations: 87.75 kB / 436 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.2763, allocations: 103.3 kB / 436.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005029/0.2768, allocations: 364.4 kB / 436.4 MB, free: 1.309 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.2768, allocations: 0 / 436.4 MB, free: 1.309 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2768, allocations: 0 / 436.4 MB, free: 1.309 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.899e-06/0.2768, allocations: 0 / 436.4 MB, free: 1.309 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.00116/0.278, allocations: 0.6127 MB / 437 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.278, allocations: 8.031 kB / 437 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.392e-05/0.2781, allocations: 38.75 kB / 437.1 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.285e-05/0.2782, allocations: 40.69 kB / 437.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004612/0.2786, allocations: 272.8 kB / 437.4 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.2786, allocations: 16.36 kB / 437.4 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.2787, allocations: 15.94 kB / 437.4 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002522/0.2789, allocations: 117.6 kB / 437.5 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.2789, allocations: 0 / 437.5 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.2789, allocations: 0 / 437.5 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.279, allocations: 7.984 kB / 437.5 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.2791, allocations: 81.38 kB / 437.6 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007329/0.2799, allocations: 439.6 kB / 438 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003219/0.2802, allocations: 138.7 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.2803, allocations: 40.84 kB / 438.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.2803, allocations: 4 kB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002436/0.2806, allocations: 123.2 kB / 438.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.2806, allocations: 0 / 438.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005346/0.2811, allocations: 228.7 kB / 438.6 MB, free: 15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.2811, allocations: 55.41 kB / 438.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005716/0.2817, allocations: 465.5 kB / 439.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.2818, allocations: 29.7 kB / 439.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.2819, allocations: 179.9 kB / 439.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.395e-05/0.282, allocations: 39.62 kB / 439.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.915e-05/0.282, allocations: 49.69 kB / 439.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.2822, allocations: 342.8 kB / 439.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.2823, allocations: 47.97 kB / 439.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.2825, allocations: 146.2 kB / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002269/0.2827, allocations: 110.6 kB / 440 MB, free: 13.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2827, allocations: 0 / 440 MB, free: 13.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003596/0.2831, allocations: 185.3 kB / 440.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.2831, allocations: 7.938 kB / 440.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.2831, allocations: 0 / 440.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.2831, allocations: 4 kB / 440.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.2833, allocations: 27.92 kB / 440.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.2833, allocations: 4 kB / 440.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.2834, allocations: 16 kB / 440.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.2834, allocations: 16 kB / 440.3 MB, free: 13.23 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.0001744/0.2836, allocations: 167.5 kB / 440.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.425e-05/0.2836, allocations: 35.75 kB / 440.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004005/0.284, allocations: 200.4 kB / 440.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.284, allocations: 0 / 440.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.2841, allocations: 4 kB / 440.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2841, allocations: 0 / 440.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002922/0.2843, allocations: 264.5 kB / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2843, allocations: 0 / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.301e-05/0.2844, allocations: 15.92 kB / 440.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.2844, allocations: 3.938 kB / 440.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.2844, allocations: 4 kB / 440.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2844, allocations: 0 / 440.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2844, allocations: 0 / 440.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003786/0.2848, allocations: 219.4 kB / 441.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.781e-05/0.2849, allocations: 43.67 kB / 441.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.026e-05/0.2849, allocations: 4 kB / 441.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.211e-05/0.285, allocations: 15.98 kB / 441.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.893e-05/0.2851, allocations: 11.98 kB / 441.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.937e-05/0.2851, allocations: 7.984 kB / 441.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004233/0.2855, allocations: 339.1 kB / 441.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2855, allocations: 0 / 441.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003056/0.2858, allocations: 55.81 kB / 441.6 MB, free: 11.79 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.0024/0.2882, allocations: 1.105 MB / 442.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003323/0.2885, allocations: 123.8 kB / 442.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2885, allocations: 0 / 442.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001524/0.2887, allocations: 63.91 kB / 442.9 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.0004368/0.2891, allocations: 76.22 kB / 443 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004036/0.2932, allocations: 2.9 MB / 445.9 MB, free: 7.594 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.2934, allocations: 166.3 kB / 446 MB, free: 7.414 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001457/0.2935, allocations: 54.17 kB / 446.1 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001703/0.2937, allocations: 103.4 kB / 446.2 MB, free: 7.258 MB / 350.1 MB Notification: Performance of SimCode: time 1.212e-06/0.2937, allocations: 0 / 446.2 MB, free: 7.258 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03787/0.3316, allocations: 8.168 MB / 454.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.03, allocations: 10.47 kB / 454.4 MB, free: 15.17 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.613249402027577]