Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001089/0.001089, allocations: 84.3 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001122/0.001122, allocations: 168.4 kB / 25.6 MB, free: 8.898 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.124/1.124, allocations: 158.6 MB / 187.5 MB, free: 2.82 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.957e-06/3.957e-06, allocations: 3.984 kB / 251.5 MB, free: 7.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.904e-05/2.299e-05, allocations: 2.312 kB / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00304/0.003063, allocations: 2.001 MB / 253.5 MB, free: 5.246 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001496/0.00456, allocations: 1.041 MB / 254.5 MB, free: 4.195 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.004689, allocations: 7.938 kB / 254.5 MB, free: 4.188 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006639/0.005352, allocations: 311.1 kB / 254.8 MB, free: 3.883 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003122/0.005665, allocations: 211.2 kB / 255 MB, free: 3.676 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004742/0.006139, allocations: 267.3 kB / 255.3 MB, free: 3.414 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003914/0.00653, allocations: 343 kB / 255.6 MB, free: 3.078 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.006647, allocations: 40.56 kB / 255.6 MB, free: 3.039 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002021/0.006849, allocations: 183.5 kB / 255.8 MB, free: 2.859 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.006997, allocations: 131.7 kB / 256 MB, free: 2.73 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.957e-05/0.007026, allocations: 20 kB / 256 MB, free: 2.711 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003415/0.01044, allocations: 91.84 kB / 256.1 MB, free: 2.621 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.866e-05/0.01053, allocations: 83.69 kB / 256.1 MB, free: 2.539 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.555e-05/0.0106, allocations: 75.7 kB / 256.2 MB, free: 2.465 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002671/0.01086, allocations: 263 kB / 256.5 MB, free: 2.207 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.01086, allocations: 3.938 kB / 256.5 MB, free: 2.203 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.01087, allocations: 0 / 256.5 MB, free: 2.203 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.346e-06/0.01087, allocations: 0 / 256.5 MB, free: 2.203 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.0006778/0.01155, allocations: 0.693 MB / 257.2 MB, free: 1.461 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.01159, allocations: 11.98 kB / 257.2 MB, free: 1.449 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.76e-05/0.01168, allocations: 44.7 kB / 257.2 MB, free: 1.406 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003318/0.01201, allocations: 269.2 kB / 257.5 MB, free: 1.109 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.01204, allocations: 12.38 kB / 257.5 MB, free: 1.098 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.378e-05/0.01206, allocations: 16.38 kB / 257.5 MB, free: 1.082 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.01225, allocations: 82.19 kB / 257.6 MB, free: 0.9961 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.01227, allocations: 7.875 kB / 257.6 MB, free: 0.9883 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.01228, allocations: 4 kB / 257.6 MB, free: 0.9844 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.01229, allocations: 4 kB / 257.6 MB, free: 0.9805 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.628e-05/0.01236, allocations: 31.95 kB / 257.6 MB, free: 0.9492 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006216/0.01298, allocations: 403.9 kB / 258 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001949/0.01318, allocations: 91.23 kB / 258.1 MB, free: 436 kB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.3e-05/0.01323, allocations: 27.67 kB / 258.2 MB, free: 404 kB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.01325, allocations: 7.938 kB / 258.2 MB, free: 396 kB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001536/0.0134, allocations: 92.94 kB / 258.3 MB, free: 288 kB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.973e-06/0.01341, allocations: 0 / 258.3 MB, free: 288 kB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003172/0.01372, allocations: 161.2 kB / 258.4 MB, free: 124 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.139e-05/0.01376, allocations: 55.41 kB / 258.5 MB, free: 56 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003615/0.01412, allocations: 386 kB / 258.8 MB, free: 15.66 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.01414, allocations: 29.7 kB / 258.9 MB, free: 15.63 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.01428, allocations: 214.8 kB / 259.1 MB, free: 15.41 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.82e-05/0.01433, allocations: 51.66 kB / 259.1 MB, free: 15.36 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.5e-05/0.01439, allocations: 43.34 kB / 259.2 MB, free: 15.31 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.01457, allocations: 0.5273 MB / 259.7 MB, free: 14.77 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.574e-05/0.01461, allocations: 15.98 kB / 259.7 MB, free: 14.76 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.834e-05/0.01471, allocations: 121.8 kB / 259.8 MB, free: 14.61 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000104/0.01482, allocations: 74.98 kB / 259.9 MB, free: 14.52 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.01482, allocations: 0 / 259.9 MB, free: 14.52 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002123/0.01503, allocations: 145.3 kB / 260.1 MB, free: 14.37 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.01505, allocations: 4 kB / 260.1 MB, free: 14.37 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.01505, allocations: 3.984 kB / 260.1 MB, free: 14.36 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.01507, allocations: 4 kB / 260.1 MB, free: 14.36 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.01517, allocations: 16 kB / 260.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.343e-06/0.01517, allocations: 7.984 kB / 260.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.803e-05/0.01525, allocations: 19.83 kB / 260.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.836e-06/0.01526, allocations: 7.938 kB / 260.1 MB, free: 14.31 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 0.0001146/0.01538, allocations: 170.6 kB / 260.3 MB, free: 14.13 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.015e-05/0.01543, allocations: 43.86 kB / 260.3 MB, free: 14.09 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002571/0.01568, allocations: 152.4 kB / 260.5 MB, free: 13.93 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.01569, allocations: 4 kB / 260.5 MB, free: 13.93 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.01569, allocations: 0 / 260.5 MB, free: 13.93 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.0157, allocations: 0 / 260.5 MB, free: 13.93 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002065/0.0159, allocations: 189 kB / 260.7 MB, free: 13.71 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.01591, allocations: 0 / 260.7 MB, free: 13.71 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.077e-05/0.01597, allocations: 15.98 kB / 260.7 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.01597, allocations: 0 / 260.7 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.01598, allocations: 4 kB / 260.7 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.01598, allocations: 8 kB / 260.7 MB, free: 13.69 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.01599, allocations: 0 / 260.7 MB, free: 13.69 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002709/0.01626, allocations: 191.6 kB / 260.9 MB, free: 13.48 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.657e-05/0.0163, allocations: 31.75 kB / 260.9 MB, free: 13.45 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.701e-05/0.01634, allocations: 8 kB / 260.9 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.101e-05/0.01641, allocations: 7.984 kB / 260.9 MB, free: 13.43 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.272e-05/0.01646, allocations: 15.97 kB / 260.9 MB, free: 13.42 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.01648, allocations: 4 kB / 260.9 MB, free: 13.41 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002069/0.01669, allocations: 250.9 kB / 261.2 MB, free: 13.17 MB / 250.7 MB Notification: Performance of sort global known variables: time 3e-07/0.01669, allocations: 0 / 261.2 MB, free: 13.17 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002941/0.01698, allocations: 63.88 kB / 261.3 MB, free: 13.11 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.00115/0.01813, allocations: 390.6 kB / 261.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002007/0.01833, allocations: 87.47 kB / 261.7 MB, free: 12.68 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.01833, allocations: 4 kB / 261.7 MB, free: 12.67 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.391e-05/0.01842, allocations: 43.61 kB / 261.8 MB, free: 12.62 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003807/0.0188, allocations: 104 kB / 261.9 MB, free: 12.52 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007073/0.01951, allocations: 438 kB / 262.3 MB, free: 12.07 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.682e-05/0.01958, allocations: 96.3 kB / 262.4 MB, free: 11.96 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001085/0.01969, allocations: 42.33 kB / 262.4 MB, free: 11.91 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001796/0.01987, allocations: 122.2 kB / 262.5 MB, free: 11.79 MB / 250.7 MB Notification: Performance of SimCode: time 7.71e-07/0.01987, allocations: 0 / 262.5 MB, free: 11.79 MB / 250.7 MB Notification: Performance of Templates: time 0.008031/0.0279, allocations: 4.396 MB / 266.9 MB, free: 7.398 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.145924706943333]