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.001426/0.001426, 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.001726/0.001726, allocations: 163.1 kB / 25.69 MB, free: 8.406 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.9147/0.9147, allocations: 158.6 MB / 187.6 MB, free: 2.797 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.353e-06/1.353e-06, allocations: 0 / 251.5 MB, free: 7.297 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.494e-05/1.629e-05, allocations: 2.312 kB / 251.5 MB, free: 7.293 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002275/0.002291, allocations: 2.013 MB / 253.5 MB, free: 5.262 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.003496, allocations: 1.049 MB / 254.6 MB, free: 4.203 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.442e-05/0.003591, allocations: 11.94 kB / 254.6 MB, free: 4.191 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005783/0.004169, allocations: 303 kB / 254.9 MB, free: 3.895 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002712/0.00444, allocations: 215.2 kB / 255.1 MB, free: 3.684 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003434/0.004783, allocations: 259.4 kB / 255.3 MB, free: 3.43 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000268/0.005051, allocations: 351 kB / 255.7 MB, free: 3.086 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.21e-05/0.005143, allocations: 30.55 kB / 255.7 MB, free: 3.059 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.005317, allocations: 187.5 kB / 255.9 MB, free: 2.875 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.005455, allocations: 139.6 kB / 256 MB, free: 2.738 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.55e-05/0.005481, allocations: 16 kB / 256 MB, free: 2.723 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.005604, allocations: 83.86 kB / 256.1 MB, free: 2.641 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.918e-05/0.005683, allocations: 91.69 kB / 256.2 MB, free: 2.551 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.977e-05/0.005743, allocations: 75.7 kB / 256.3 MB, free: 2.477 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002381/0.005981, allocations: 255 kB / 256.5 MB, free: 2.227 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.005983, allocations: 7.984 kB / 256.5 MB, free: 2.219 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.01e-07/0.005984, allocations: 0 / 256.5 MB, free: 2.219 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.026e-06/0.005987, allocations: 0 / 256.5 MB, free: 2.219 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.0004881/0.006475, allocations: 0.5566 MB / 257.1 MB, free: 1.625 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/0.006506, allocations: 15.92 kB / 257.1 MB, free: 1.609 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.423e-05/0.00655, allocations: 36.91 kB / 257.2 MB, free: 1.574 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002177/0.006768, allocations: 242.5 kB / 257.4 MB, free: 1.309 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.006784, allocations: 16.31 kB / 257.4 MB, free: 1.293 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.543e-05/0.0068, allocations: 8.375 kB / 257.4 MB, free: 1.285 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001186/0.006918, allocations: 96.95 kB / 257.5 MB, free: 1.184 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.114e-06/0.006926, allocations: 3.938 kB / 257.5 MB, free: 1.18 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.006935, allocations: 3.984 kB / 257.5 MB, free: 1.176 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.006941, allocations: 4 kB / 257.5 MB, free: 1.172 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.042e-05/0.006982, allocations: 23.98 kB / 257.5 MB, free: 1.148 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003032/0.007285, allocations: 269.6 kB / 257.8 MB, free: 0.8672 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/0.007404, allocations: 125.2 kB / 257.9 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.853e-05/0.007433, allocations: 20.86 kB / 258 MB, free: 0.7109 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.125e-05/0.007444, allocations: 4 kB / 258 MB, free: 0.707 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.173e-05/0.007536, allocations: 98.03 kB / 258.1 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.007537, allocations: 0 / 258.1 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001414/0.007678, allocations: 105.6 kB / 258.2 MB, free: 500 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.277e-05/0.007701, allocations: 55.41 kB / 258.2 MB, free: 432 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001882/0.007889, allocations: 320.5 kB / 258.5 MB, free: 96 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.007907, allocations: 33.7 kB / 258.6 MB, free: 56 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.06e-05/0.007967, allocations: 121 kB / 258.7 MB, free: 15.93 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.079e-05/0.007998, allocations: 43.66 kB / 258.7 MB, free: 15.89 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.176e-05/0.00804, allocations: 45.69 kB / 258.8 MB, free: 15.84 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.006e-05/0.00812, allocations: 346.7 kB / 259.1 MB, free: 15.49 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.441e-05/0.008144, allocations: 18.81 kB / 259.1 MB, free: 15.47 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.951e-05/0.008204, allocations: 115.5 kB / 259.2 MB, free: 15.33 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.346e-05/0.008267, allocations: 68.17 kB / 259.3 MB, free: 15.25 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.008269, allocations: 0 / 259.3 MB, free: 15.25 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001084/0.008378, allocations: 108.3 kB / 259.4 MB, free: 15.14 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.008389, allocations: 12 kB / 259.4 MB, free: 15.13 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.008393, allocations: 0 / 259.4 MB, free: 15.13 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.438e-06/0.008402, allocations: 3.938 kB / 259.4 MB, free: 15.12 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.686e-05/0.008469, allocations: 23.98 kB / 259.4 MB, free: 15.1 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.106e-06/0.008472, allocations: 0 / 259.4 MB, free: 15.1 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.692e-05/0.008519, allocations: 15.94 kB / 259.5 MB, free: 15.09 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-06/0.008528, allocations: 7.938 kB / 259.5 MB, free: 15.08 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.538e-05/0.008603, allocations: 130.6 kB / 259.6 MB, free: 14.94 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.023e-05/0.008623, allocations: 23.92 kB / 259.6 MB, free: 14.91 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001253/0.008749, allocations: 112.5 kB / 259.7 MB, free: 14.8 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.00875, allocations: 0 / 259.7 MB, free: 14.8 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.008753, allocations: 4 kB / 259.7 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.008756, allocations: 0 / 259.7 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.008867, allocations: 157.6 kB / 259.9 MB, free: 14.62 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.008869, allocations: 0 / 259.9 MB, free: 14.62 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.515e-05/0.008894, allocations: 15.92 kB / 259.9 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.008895, allocations: 0 / 259.9 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/0.008902, allocations: 4 kB / 259.9 MB, free: 14.6 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.008903, allocations: 0 / 259.9 MB, free: 14.6 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.008904, allocations: 4 kB / 259.9 MB, free: 14.6 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.63e-05/0.009, allocations: 130.6 kB / 260 MB, free: 14.45 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.526e-05/0.009026, allocations: 27.8 kB / 260.1 MB, free: 14.42 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.009048, allocations: 4 kB / 260.1 MB, free: 14.42 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.923e-05/0.009087, allocations: 15.98 kB / 260.1 MB, free: 14.4 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.361e-05/0.009121, allocations: 7.984 kB / 260.1 MB, free: 14.39 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.009132, allocations: 11.98 kB / 260.1 MB, free: 14.38 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001036/0.009236, allocations: 139.4 kB / 260.2 MB, free: 14.24 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009236, allocations: 0 / 260.2 MB, free: 14.24 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001463/0.009382, allocations: 51.89 kB / 260.3 MB, free: 14.19 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.00097/0.01035, allocations: 0.5209 MB / 260.8 MB, free: 13.71 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001133/0.01047, allocations: 72.77 kB / 260.9 MB, free: 13.64 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.01047, allocations: 0 / 260.9 MB, free: 13.64 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.648e-05/0.01052, allocations: 44.78 kB / 260.9 MB, free: 13.59 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001858/0.0107, allocations: 97.16 kB / 261 MB, free: 13.5 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004214/0.01112, allocations: 430.2 kB / 261.4 MB, free: 13.05 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.822e-05/0.01117, allocations: 96.3 kB / 261.5 MB, free: 12.94 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.688e-05/0.01124, allocations: 38.2 kB / 261.6 MB, free: 12.9 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.01134, allocations: 99.34 kB / 261.7 MB, free: 12.8 MB / 250.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01134, allocations: 0 / 261.7 MB, free: 12.8 MB / 250.7 MB Notification: Performance of Templates: time 0.006789/0.01813, allocations: 4.366 MB / 266 MB, free: 8.438 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: 2.750234993174672]