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.001612/0.001612, allocations: 96.3 kB / 21.73 MB, free: 2.703 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.001571/0.001571, allocations: 169.6 kB / 25.03 MB, free: 8.422 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.528/1.528, allocations: 158.6 MB / 186.8 MB, free: 2.848 MB / 170.7 MB " [Timeout remaining time 178] 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.874e-06/1.874e-06, allocations: 0 / 250.3 MB, free: 3.961 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.354e-05/3.542e-05, allocations: 2.312 kB / 250.3 MB, free: 3.957 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.005595/0.00563, allocations: 1.938 MB / 252.3 MB, free: 2 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003295/0.008925, allocations: 1.014 MB / 253.3 MB, free: 0.9766 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002572/0.009182, allocations: 3.938 kB / 253.3 MB, free: 0.9727 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001995/0.01118, allocations: 323 kB / 253.6 MB, free: 0.6562 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001002/0.01218, allocations: 211.2 kB / 253.8 MB, free: 460 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001169/0.01335, allocations: 267.3 kB / 254.1 MB, free: 192 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008237/0.01417, allocations: 339 kB / 254.4 MB, free: 15.86 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.01437, allocations: 36.56 kB / 254.5 MB, free: 15.82 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004219/0.01479, allocations: 195.4 kB / 254.6 MB, free: 15.63 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003029/0.01509, allocations: 131.7 kB / 254.8 MB, free: 15.5 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.696e-05/0.01515, allocations: 16 kB / 254.8 MB, free: 15.48 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003303/0.01548, allocations: 91.86 kB / 254.9 MB, free: 15.39 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.01568, allocations: 95.67 kB / 255 MB, free: 15.3 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001673/0.01585, allocations: 63.78 kB / 255 MB, free: 15.24 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000795/0.01664, allocations: 358.7 kB / 255.4 MB, free: 14.89 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.847e-06/0.01665, allocations: 0 / 255.4 MB, free: 14.89 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.01665, allocations: 0 / 255.4 MB, free: 14.89 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.01666, allocations: 0 / 255.4 MB, free: 14.89 MB / 250.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.001621/0.01829, allocations: 0.5855 MB / 256 MB, free: 14.26 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.515e-05/0.01836, allocations: 15.98 kB / 256 MB, free: 14.24 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001792/0.01854, allocations: 44.7 kB / 256 MB, free: 14.2 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007059/0.01925, allocations: 277.7 kB / 256.3 MB, free: 13.9 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.59e-05/0.01928, allocations: 12.23 kB / 256.3 MB, free: 13.89 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.852e-05/0.01932, allocations: 12.38 kB / 256.3 MB, free: 13.88 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004351/0.01976, allocations: 114.2 kB / 256.4 MB, free: 13.76 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.01977, allocations: 7.938 kB / 256.4 MB, free: 13.75 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.331e-05/0.01981, allocations: 7.984 kB / 256.4 MB, free: 13.75 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.01982, allocations: 0 / 256.4 MB, free: 13.75 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002795/0.0201, allocations: 79.89 kB / 256.5 MB, free: 13.67 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.02119, allocations: 412.1 kB / 256.9 MB, free: 13.23 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005138/0.0217, allocations: 122.8 kB / 257 MB, free: 13.11 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.02188, allocations: 44.84 kB / 257.1 MB, free: 13.06 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.181e-05/0.02191, allocations: 7.984 kB / 257.1 MB, free: 13.05 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003736/0.02228, allocations: 115.3 kB / 257.2 MB, free: 12.93 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 2.083e-06/0.02228, allocations: 3.938 kB / 257.2 MB, free: 12.92 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009896/0.02327, allocations: 231.5 kB / 257.4 MB, free: 12.69 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.547e-05/0.02334, allocations: 51.41 kB / 257.5 MB, free: 12.63 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008493/0.02419, allocations: 440.4 kB / 257.9 MB, free: 12.19 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.696e-05/0.02424, allocations: 33.7 kB / 258 MB, free: 12.15 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002322/0.02447, allocations: 171.9 kB / 258.1 MB, free: 11.98 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.037e-05/0.02454, allocations: 39.69 kB / 258.2 MB, free: 11.94 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.02465, allocations: 41.7 kB / 258.2 MB, free: 11.89 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002798/0.02493, allocations: 350.8 kB / 258.5 MB, free: 11.54 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.0251, allocations: 43.98 kB / 258.6 MB, free: 11.5 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000308/0.02541, allocations: 147.6 kB / 258.7 MB, free: 11.32 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003466/0.02575, allocations: 118.5 kB / 258.8 MB, free: 11.2 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/0.02576, allocations: 4 kB / 258.9 MB, free: 11.2 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005482/0.02631, allocations: 186.9 kB / 259 MB, free: 11.01 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.02634, allocations: 8 kB / 259 MB, free: 11 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.02635, allocations: 0 / 259 MB, free: 11 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.459e-05/0.02637, allocations: 0 / 259 MB, free: 11 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.02656, allocations: 27.98 kB / 259.1 MB, free: 10.97 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/0.02658, allocations: 8 kB / 259.1 MB, free: 10.96 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.02673, allocations: 11.94 kB / 259.1 MB, free: 10.95 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.824e-05/0.02676, allocations: 11.98 kB / 259.1 MB, free: 10.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 0.0002873/0.02705, allocations: 167.8 kB / 259.3 MB, free: 10.77 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.79e-05/0.02715, allocations: 35.77 kB / 259.3 MB, free: 10.73 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006421/0.02779, allocations: 200.4 kB / 259.5 MB, free: 10.53 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.0278, allocations: 0 / 259.5 MB, free: 10.53 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/0.02781, allocations: 11.92 kB / 259.5 MB, free: 10.52 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.02782, allocations: 7.938 kB / 259.5 MB, free: 10.51 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004404/0.02826, allocations: 213.2 kB / 259.7 MB, free: 10.27 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.02827, allocations: 3.984 kB / 259.7 MB, free: 10.27 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.858e-05/0.02834, allocations: 12 kB / 259.7 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.343e-06/0.02835, allocations: 4 kB / 259.7 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.02837, allocations: 0 / 259.7 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.02837, allocations: 0 / 259.7 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.02837, allocations: 0 / 259.7 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006069/0.02898, allocations: 232.6 kB / 260 MB, free: 10 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.657e-05/0.02908, allocations: 35.8 kB / 260 MB, free: 9.969 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.874e-05/0.02914, allocations: 15.92 kB / 260 MB, free: 9.953 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.02926, allocations: 4 kB / 260 MB, free: 9.949 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.798e-05/0.02936, allocations: 23.97 kB / 260 MB, free: 9.926 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.557e-05/0.02938, allocations: 4 kB / 260.1 MB, free: 9.922 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0005836/0.02997, allocations: 323 kB / 260.4 MB, free: 9.605 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02997, allocations: 0 / 260.4 MB, free: 9.605 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005017/0.03047, allocations: 51.94 kB / 260.4 MB, free: 9.555 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.002946/0.03341, allocations: 453.4 kB / 260.9 MB, free: 9.141 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005372/0.03395, allocations: 127.8 kB / 261 MB, free: 9.016 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.03395, allocations: 0 / 261 MB, free: 9.016 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.03417, allocations: 63.91 kB / 261 MB, free: 8.953 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007417/0.03491, allocations: 89.42 kB / 261.1 MB, free: 8.867 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.03635, allocations: 0.5084 MB / 261.6 MB, free: 8.336 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.03667, allocations: 166 kB / 261.8 MB, free: 8.156 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002201/0.03689, allocations: 42.27 kB / 261.8 MB, free: 8.113 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.03702, allocations: 36.48 kB / 261.9 MB, free: 8.078 MB / 250.7 MB Notification: Performance of SimCode: time 1.022e-06/0.03702, allocations: 3.938 kB / 261.9 MB, free: 8.074 MB / 250.7 MB Notification: Performance of Templates: time 0.01747/0.05449, allocations: 3.987 MB / 265.9 MB, free: 4.086 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.541396033018827]