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.0008175/0.0008175, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001091/0.001909, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007229/0.0007229, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009097/0.001633, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 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 0.8663/0.8663, allocations: 158.6 MB / 171.1 MB, free: 2.574 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1607/1.027, allocations: 49.48 MB / 220.5 MB, free: 1.461 MB / 218.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 1.393e-06/1.393e-06, allocations: 0 / 221.8 MB, free: 200 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.344e-05/1.483e-05, allocations: 6.25 kB / 221.8 MB, free: 192 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.005906/0.005921, allocations: 2.053 MB / 223.9 MB, free: 14.11 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.007491, allocations: 1.06 MB / 224.9 MB, free: 13.04 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.00761, allocations: 4 kB / 224.9 MB, free: 13.04 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006462/0.008256, allocations: 295 kB / 225.2 MB, free: 12.75 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003375/0.01163, allocations: 227.1 kB / 225.4 MB, free: 12.53 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005388/0.01217, allocations: 263.3 kB / 225.7 MB, free: 12.27 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003786/0.01255, allocations: 335.1 kB / 226 MB, free: 11.94 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.01268, allocations: 46.45 kB / 226.1 MB, free: 11.9 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003257/0.01301, allocations: 249.4 kB / 226.3 MB, free: 11.65 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001803/0.01319, allocations: 135.6 kB / 226.5 MB, free: 11.52 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.599e-05/0.01323, allocations: 16 kB / 226.5 MB, free: 11.5 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001879/0.01341, allocations: 95.78 kB / 226.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.892e-05/0.01351, allocations: 75.73 kB / 226.6 MB, free: 11.34 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.458e-05/0.0136, allocations: 51.88 kB / 226.7 MB, free: 11.29 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003243/0.01392, allocations: 235 kB / 226.9 MB, free: 11.05 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.411e-05/0.01393, allocations: 3.984 kB / 226.9 MB, free: 11.05 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.01394, allocations: 3.938 kB / 226.9 MB, free: 11.05 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.01395, allocations: 0 / 226.9 MB, free: 11.05 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.003774/0.01772, allocations: 0.6033 MB / 227.5 MB, free: 10.41 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.063e-05/0.01775, allocations: 12.03 kB / 227.5 MB, free: 10.39 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.867e-05/0.01781, allocations: 28.91 kB / 227.6 MB, free: 10.37 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003076/0.01812, allocations: 242.4 kB / 227.8 MB, free: 10.1 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.01814, allocations: 8.375 kB / 227.8 MB, free: 10.09 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.857e-05/0.01816, allocations: 12.38 kB / 227.8 MB, free: 10.08 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001548/0.01831, allocations: 96.86 kB / 227.9 MB, free: 9.977 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.01832, allocations: 3.938 kB / 227.9 MB, free: 9.973 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.01833, allocations: 4 kB / 227.9 MB, free: 9.969 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.01834, allocations: 4 kB / 227.9 MB, free: 9.965 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.299e-05/0.0184, allocations: 31.97 kB / 228 MB, free: 9.934 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000415/0.01882, allocations: 269.6 kB / 228.2 MB, free: 9.652 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.01897, allocations: 121.2 kB / 228.3 MB, free: 9.523 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.988e-05/0.01901, allocations: 24.84 kB / 228.4 MB, free: 9.496 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.01903, allocations: 8 kB / 228.4 MB, free: 9.488 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001381/0.01916, allocations: 90.16 kB / 228.5 MB, free: 9.387 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 2.705e-06/0.01917, allocations: 3.984 kB / 228.5 MB, free: 9.383 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001947/0.01936, allocations: 115.5 kB / 228.6 MB, free: 9.266 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.897e-05/0.01939, allocations: 51.41 kB / 228.6 MB, free: 9.203 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002945/0.01968, allocations: 316.6 kB / 228.9 MB, free: 8.883 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.01971, allocations: 33.7 kB / 229 MB, free: 8.844 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.141e-05/0.01978, allocations: 133 kB / 229.1 MB, free: 8.711 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.046e-05/0.01982, allocations: 43.66 kB / 229.1 MB, free: 8.668 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.641e-05/0.01988, allocations: 41.69 kB / 229.2 MB, free: 8.621 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.01999, allocations: 350.7 kB / 229.5 MB, free: 8.27 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.75e-05/0.02003, allocations: 18.81 kB / 229.5 MB, free: 8.25 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.176e-05/0.02011, allocations: 103.7 kB / 229.7 MB, free: 8.121 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.613e-05/0.02021, allocations: 72.06 kB / 229.7 MB, free: 8.039 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.02021, allocations: 0 / 229.7 MB, free: 8.039 MB / 234.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001547/0.02036, allocations: 109.1 kB / 229.8 MB, free: 7.926 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.02038, allocations: 7.984 kB / 229.8 MB, free: 7.918 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.299e-06/0.02038, allocations: 0 / 229.8 MB, free: 7.918 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.02039, allocations: 4 kB / 229.8 MB, free: 7.914 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003098/0.02349, allocations: 23.98 kB / 229.9 MB, free: 7.891 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.516e-06/0.02349, allocations: 3.938 kB / 229.9 MB, free: 7.887 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.2e-05/0.02357, allocations: 19.89 kB / 229.9 MB, free: 7.867 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.02358, allocations: 15.86 kB / 229.9 MB, free: 7.852 MB / 234.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.0001008/0.02368, allocations: 134.7 kB / 230 MB, free: 7.707 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.186e-05/0.02371, allocations: 15.98 kB / 230 MB, free: 7.691 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000184/0.0239, allocations: 116.4 kB / 230.2 MB, free: 7.57 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.0239, allocations: 4 kB / 230.2 MB, free: 7.566 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.0239, allocations: 0 / 230.2 MB, free: 7.566 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.02391, allocations: 0 / 230.2 MB, free: 7.566 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/0.02407, allocations: 153.6 kB / 230.3 MB, free: 7.398 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.02408, allocations: 4 kB / 230.3 MB, free: 7.395 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.205e-05/0.02413, allocations: 15.98 kB / 230.3 MB, free: 7.379 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.645e-05/0.02417, allocations: 23.81 kB / 230.4 MB, free: 7.355 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.02417, allocations: 0 / 230.4 MB, free: 7.355 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.02418, allocations: 12 kB / 230.4 MB, free: 7.344 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.02418, allocations: 0 / 230.4 MB, free: 7.344 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.02418, allocations: 0 / 230.4 MB, free: 7.344 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001589/0.02434, allocations: 141.1 kB / 230.5 MB, free: 7.188 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.266e-05/0.02438, allocations: 4 kB / 230.5 MB, free: 7.184 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.099e-05/0.02444, allocations: 11.98 kB / 230.5 MB, free: 7.172 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.288e-05/0.02448, allocations: 15.98 kB / 230.5 MB, free: 7.156 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.851e-05/0.0245, allocations: 7.984 kB / 230.5 MB, free: 7.148 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001455/0.02464, allocations: 131.4 kB / 230.7 MB, free: 7.02 MB / 234.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02464, allocations: 0 / 230.7 MB, free: 7.02 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002424/0.02489, allocations: 59.89 kB / 230.7 MB, free: 6.961 MB / 234.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.004704/0.02959, allocations: 0.5546 MB / 231.3 MB, free: 6.434 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001472/0.02974, allocations: 72.61 kB / 231.4 MB, free: 6.359 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 9.238e-06/0.02975, allocations: 4 kB / 231.4 MB, free: 6.355 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 6.357e-05/0.02981, allocations: 48.77 kB / 231.4 MB, free: 6.305 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.03007, allocations: 109.2 kB / 231.5 MB, free: 6.199 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007259/0.0308, allocations: 446 kB / 232 MB, free: 5.734 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.464e-05/0.03087, allocations: 96.3 kB / 232 MB, free: 5.621 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 9.691e-05/0.03097, allocations: 38.27 kB / 232.1 MB, free: 5.582 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.03113, allocations: 107.3 kB / 232.2 MB, free: 5.477 MB / 234.7 MB Notification: Performance of SimCode: time 7.51e-07/0.03113, allocations: 0 / 232.2 MB, free: 5.477 MB / 234.7 MB Notification: Performance of Templates: time 0.01258/0.04371, allocations: 4.413 MB / 236.6 MB, free: 1.062 MB / 234.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 -ignoreHideResult -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: 2.643306862562895]