Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001513/0.002611, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001949/0.003503, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.026/1.026, allocations: 173.4 MB / 186 MB, free: 7.52 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1742/1.2, allocations: 52.48 MB / 238.5 MB, free: 7.605 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 239.7 MB, free: 6.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.171e-05/2.304e-05, allocations: 2.312 kB / 239.8 MB, free: 6.332 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003489/0.003512, allocations: 2.052 MB / 241.8 MB, free: 4.285 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.005492, allocations: 1.14 MB / 242.9 MB, free: 3.145 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.005623, allocations: 7.938 kB / 243 MB, free: 3.137 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007682/0.006391, allocations: 288.4 kB / 243.2 MB, free: 2.859 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004775/0.006869, allocations: 232.5 kB / 243.5 MB, free: 2.633 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008188/0.007688, allocations: 293 kB / 243.7 MB, free: 2.348 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003849/0.008072, allocations: 335.1 kB / 244.1 MB, free: 2.02 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.008176, allocations: 45.66 kB / 244.1 MB, free: 1.977 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002356/0.008412, allocations: 261.3 kB / 244.4 MB, free: 1.719 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.008557, allocations: 135.6 kB / 244.5 MB, free: 1.586 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.869e-05/0.008586, allocations: 16 kB / 244.5 MB, free: 1.57 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.00874, allocations: 95.8 kB / 244.6 MB, free: 1.477 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.446e-05/0.008814, allocations: 67.8 kB / 244.7 MB, free: 1.41 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.626e-05/0.008871, allocations: 55.81 kB / 244.7 MB, free: 1.355 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002426/0.009113, allocations: 235 kB / 245 MB, free: 1.125 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.052e-05/0.009124, allocations: 1.281 kB / 245 MB, free: 1.125 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.009125, allocations: 0 / 245 MB, free: 1.125 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.009136, allocations: 4 kB / 245 MB, free: 1.121 MB / 234.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.0005854/0.009721, allocations: 0.6081 MB / 245.6 MB, free: 484 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.869e-05/0.00975, allocations: 8.031 kB / 245.6 MB, free: 476 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.566e-05/0.009795, allocations: 31.91 kB / 245.6 MB, free: 448 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.01003, allocations: 246.4 kB / 245.9 MB, free: 172 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.01005, allocations: 12.36 kB / 245.9 MB, free: 160 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.01006, allocations: 15.92 kB / 245.9 MB, free: 144 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001265/0.01019, allocations: 92.31 kB / 246 MB, free: 44 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.0102, allocations: 4 kB / 246 MB, free: 40 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.01021, allocations: 4 kB / 246 MB, free: 36 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.01021, allocations: 0.9688 kB / 246 MB, free: 36 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.256e-05/0.01026, allocations: 35.91 kB / 246 MB, free: 0 / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003308/0.01059, allocations: 266.5 kB / 246.3 MB, free: 15.72 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001212/0.01071, allocations: 127 kB / 246.4 MB, free: 15.59 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.834e-05/0.01074, allocations: 20.86 kB / 246.4 MB, free: 15.57 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.102e-05/0.01075, allocations: 0 / 246.4 MB, free: 15.57 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001119/0.01086, allocations: 90.81 kB / 246.5 MB, free: 15.46 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.293e-06/0.01086, allocations: 0 / 246.5 MB, free: 15.46 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001588/0.01102, allocations: 116.6 kB / 246.6 MB, free: 15.35 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.549e-05/0.01104, allocations: 57.31 kB / 246.7 MB, free: 15.28 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001993/0.01124, allocations: 324.5 kB / 247 MB, free: 14.95 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.01126, allocations: 29.7 kB / 247 MB, free: 14.91 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.199e-05/0.01131, allocations: 125 kB / 247.1 MB, free: 14.79 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.128e-05/0.01135, allocations: 43.67 kB / 247.2 MB, free: 14.75 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.349e-05/0.01139, allocations: 39.16 kB / 247.2 MB, free: 14.7 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.974e-05/0.01148, allocations: 346.8 kB / 247.6 MB, free: 14.36 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.575e-05/0.01151, allocations: 18.81 kB / 247.6 MB, free: 14.34 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.833e-05/0.01156, allocations: 106.9 kB / 247.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.917e-05/0.01163, allocations: 77.33 kB / 247.8 MB, free: 14.12 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.01163, allocations: 0.5 kB / 247.8 MB, free: 14.12 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001108/0.01175, allocations: 110.3 kB / 247.9 MB, free: 14.01 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.01176, allocations: 5.656 kB / 247.9 MB, free: 14 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.01176, allocations: 4 kB / 247.9 MB, free: 14 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.01177, allocations: 0 / 247.9 MB, free: 14 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.939e-05/0.01185, allocations: 31.86 kB / 247.9 MB, free: 13.97 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.389e-06/0.01186, allocations: 4.094 kB / 247.9 MB, free: 13.96 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.88e-05/0.01191, allocations: 15.95 kB / 247.9 MB, free: 13.95 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.806e-06/0.01192, allocations: 7.984 kB / 247.9 MB, free: 13.94 MB / 250.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 8.18e-05/0.012, allocations: 130.6 kB / 248.1 MB, free: 13.8 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.072e-05/0.01202, allocations: 15.98 kB / 248.1 MB, free: 13.79 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001418/0.01216, allocations: 112.5 kB / 248.2 MB, free: 13.67 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.01216, allocations: 4 kB / 248.2 MB, free: 13.67 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.01217, allocations: 3.938 kB / 248.2 MB, free: 13.66 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.01217, allocations: 0 / 248.2 MB, free: 13.66 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001412/0.01231, allocations: 149.7 kB / 248.4 MB, free: 13.5 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.01232, allocations: 7.938 kB / 248.4 MB, free: 13.49 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.019e-05/0.01236, allocations: 15.98 kB / 248.4 MB, free: 13.48 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.603e-05/0.01238, allocations: 27.75 kB / 248.4 MB, free: 13.45 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.01238, allocations: 0 / 248.4 MB, free: 13.45 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.01239, allocations: 11.98 kB / 248.4 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.01239, allocations: 0 / 248.4 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.0124, allocations: 3.938 kB / 248.4 MB, free: 13.43 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001165/0.01251, allocations: 140.6 kB / 248.6 MB, free: 13.28 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/0.01254, allocations: 7.984 kB / 248.6 MB, free: 13.27 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.359e-05/0.01258, allocations: 15.98 kB / 248.6 MB, free: 13.25 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.567e-05/0.01264, allocations: 15.97 kB / 248.6 MB, free: 13.24 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.01265, allocations: 4 kB / 248.6 MB, free: 13.23 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000106/0.01276, allocations: 135.4 kB / 248.7 MB, free: 13.1 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01276, allocations: 0 / 248.7 MB, free: 13.1 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001587/0.01292, allocations: 51.94 kB / 248.8 MB, free: 13.05 MB / 250.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.001188/0.0141, allocations: 0.5668 MB / 249.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001378/0.01424, allocations: 84.2 kB / 249.4 MB, free: 12.67 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/0.01425, allocations: 4 kB / 249.4 MB, free: 12.67 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.577e-05/0.01432, allocations: 52.77 kB / 249.5 MB, free: 12.61 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003451/0.01466, allocations: 450.4 kB / 249.9 MB, free: 12.1 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007244/0.01539, allocations: 441.9 kB / 250.4 MB, free: 11.64 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.134e-05/0.01544, allocations: 100.3 kB / 250.5 MB, free: 11.52 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.148e-05/0.01551, allocations: 42.38 kB / 250.5 MB, free: 11.48 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.01562, allocations: 103.3 kB / 250.6 MB, free: 11.38 MB / 250.7 MB Notification: Performance of SimCode: time 9.32e-07/0.01562, allocations: 0 / 250.6 MB, free: 11.38 MB / 250.7 MB Notification: Performance of Templates: time 0.00602/0.02164, allocations: 4.447 MB / 255 MB, free: 7.008 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.640380977652967]