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.00132/0.00132, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.001021/0.001021, allocations: 167.8 kB / 25.69 MB, free: 8.453 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 0.9791/0.9791, allocations: 158.6 MB / 187.6 MB, free: 2.805 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 1.363e-06/1.363e-06, allocations: 0 / 251.5 MB, free: 7.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.479e-05/1.615e-05, allocations: 2.312 kB / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002428/0.002445, allocations: 2.056 MB / 253.6 MB, free: 5.184 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.003707, allocations: 1.053 MB / 254.7 MB, free: 4.121 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.003807, allocations: 7.938 kB / 254.7 MB, free: 4.113 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006555/0.004463, allocations: 311 kB / 255 MB, free: 3.809 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002656/0.004728, allocations: 207.2 kB / 255.2 MB, free: 3.605 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.005118, allocations: 263.3 kB / 255.4 MB, free: 3.348 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002802/0.005398, allocations: 347 kB / 255.8 MB, free: 3.008 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.005506, allocations: 38.53 kB / 255.8 MB, free: 2.973 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.00568, allocations: 183.6 kB / 256 MB, free: 2.793 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001475/0.005828, allocations: 139.6 kB / 256.1 MB, free: 2.656 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.676e-05/0.005854, allocations: 19.94 kB / 256.1 MB, free: 2.637 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001465/0.006001, allocations: 87.88 kB / 256.2 MB, free: 2.551 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.026e-05/0.006091, allocations: 83.73 kB / 256.3 MB, free: 2.469 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.6e-05/0.006167, allocations: 75.7 kB / 256.4 MB, free: 2.395 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000264/0.006431, allocations: 259 kB / 256.6 MB, free: 2.141 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.006433, allocations: 0 / 256.6 MB, free: 2.141 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.006434, allocations: 4 kB / 256.6 MB, free: 2.137 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.006439, allocations: 0 / 256.6 MB, free: 2.137 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.000536/0.006975, allocations: 0.5721 MB / 257.2 MB, free: 1.523 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.007007, allocations: 11.98 kB / 257.2 MB, free: 1.512 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.732e-05/0.007055, allocations: 24.91 kB / 257.2 MB, free: 1.488 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000264/0.007319, allocations: 246.4 kB / 257.5 MB, free: 1.219 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.00734, allocations: 8.375 kB / 257.5 MB, free: 1.211 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.007357, allocations: 16.36 kB / 257.5 MB, free: 1.195 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001428/0.0075, allocations: 85.02 kB / 257.6 MB, free: 1.105 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.00751, allocations: 7.938 kB / 257.6 MB, free: 1.098 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.007522, allocations: 8 kB / 257.6 MB, free: 1.09 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.007529, allocations: 0 / 257.6 MB, free: 1.09 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.97e-05/0.007579, allocations: 31.91 kB / 257.6 MB, free: 1.059 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003602/0.007939, allocations: 261.6 kB / 257.9 MB, free: 0.7852 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000129/0.008068, allocations: 121.2 kB / 258 MB, free: 0.6562 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.135e-05/0.008099, allocations: 24.84 kB / 258 MB, free: 0.6289 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.008114, allocations: 8 kB / 258 MB, free: 0.6211 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000129/0.008243, allocations: 94.09 kB / 258.1 MB, free: 0.5156 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.008245, allocations: 0 / 258.1 MB, free: 0.5156 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001739/0.008418, allocations: 105.6 kB / 258.2 MB, free: 416 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.644e-05/0.008445, allocations: 51.41 kB / 258.3 MB, free: 352 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002036/0.008648, allocations: 320.6 kB / 258.6 MB, free: 16 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.008679, allocations: 29.7 kB / 258.6 MB, free: 15.98 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.106e-05/0.00874, allocations: 133 kB / 258.8 MB, free: 15.84 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.368e-05/0.008774, allocations: 39.69 kB / 258.8 MB, free: 15.8 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.517e-05/0.008819, allocations: 41.67 kB / 258.8 MB, free: 15.76 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.249e-05/0.008912, allocations: 350.7 kB / 259.2 MB, free: 15.41 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.027e-05/0.008942, allocations: 18.81 kB / 259.2 MB, free: 15.39 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.542e-05/0.009007, allocations: 111.6 kB / 259.3 MB, free: 15.25 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.002e-05/0.009078, allocations: 68.12 kB / 259.4 MB, free: 15.17 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.00908, allocations: 3.938 kB / 259.4 MB, free: 15.17 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001253/0.009205, allocations: 108.1 kB / 259.5 MB, free: 15.06 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.009216, allocations: 4 kB / 259.5 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.009221, allocations: 8.078 kB / 259.5 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.009234, allocations: 4 kB / 259.5 MB, free: 15.04 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.32e-05/0.009308, allocations: 23.94 kB / 259.5 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.536e-06/0.009311, allocations: 3.984 kB / 259.5 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.779e-05/0.009359, allocations: 15.94 kB / 259.5 MB, free: 15 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.009368, allocations: 7.938 kB / 259.6 MB, free: 14.99 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 7.85e-05/0.009446, allocations: 130.7 kB / 259.7 MB, free: 14.85 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.096e-05/0.009467, allocations: 19.98 kB / 259.7 MB, free: 14.83 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001346/0.009602, allocations: 120.5 kB / 259.8 MB, free: 14.71 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.009604, allocations: 0 / 259.8 MB, free: 14.71 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.009606, allocations: 0 / 259.8 MB, free: 14.71 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.00961, allocations: 3.984 kB / 259.8 MB, free: 14.7 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001229/0.009733, allocations: 153.6 kB / 260 MB, free: 14.54 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.009735, allocations: 0 / 260 MB, free: 14.54 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.797e-05/0.009763, allocations: 11.98 kB / 260 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.009765, allocations: 4 kB / 260 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.009773, allocations: 4 kB / 260 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.009774, allocations: 0 / 260 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.009774, allocations: 0 / 260 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001049/0.009879, allocations: 141.6 kB / 260.1 MB, free: 14.36 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.87e-05/0.009908, allocations: 31.8 kB / 260.2 MB, free: 14.33 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.00993, allocations: 4 kB / 260.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.518e-05/0.009965, allocations: 8 kB / 260.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.927e-05/0.01, allocations: 15.97 kB / 260.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.01002, allocations: 4 kB / 260.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001097/0.01013, allocations: 135.4 kB / 260.3 MB, free: 14.16 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01013, allocations: 0 / 260.3 MB, free: 14.16 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001648/0.01029, allocations: 55.89 kB / 260.4 MB, free: 14.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.001093/0.01138, allocations: 0.5286 MB / 260.9 MB, free: 13.62 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001124/0.0115, allocations: 68.77 kB / 261 MB, free: 13.55 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.0115, allocations: 8 kB / 261 MB, free: 13.54 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.808e-05/0.01155, allocations: 44.77 kB / 261 MB, free: 13.49 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001967/0.01175, allocations: 85.22 kB / 261.1 MB, free: 13.41 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004317/0.01218, allocations: 422.2 kB / 261.5 MB, free: 12.97 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.292e-05/0.01223, allocations: 104.3 kB / 261.6 MB, free: 12.85 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.296e-05/0.01229, allocations: 34.27 kB / 261.7 MB, free: 12.82 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.0124, allocations: 103.3 kB / 261.8 MB, free: 12.72 MB / 250.7 MB Notification: Performance of SimCode: time 5.41e-07/0.0124, allocations: 0 / 261.8 MB, free: 12.72 MB / 250.7 MB Notification: Performance of Templates: time 0.005779/0.01818, allocations: 4.366 MB / 266.1 MB, free: 8.352 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 -s gbode -gbm=radauIIA3 -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: 2.902001117821783]