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.002534/0.002534, allocations: 95.53 kB / 21.73 MB, free: 2.691 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.002905/0.002905, allocations: 165.3 kB / 25.03 MB, free: 8.414 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.359/1.359, allocations: 158.6 MB / 186.8 MB, free: 2.914 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.734e-06/1.734e-06, allocations: 0 / 250.3 MB, free: 7.855 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.321e-05/3.495e-05, allocations: 2.312 kB / 250.3 MB, free: 7.852 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004201/0.004236, allocations: 1.982 MB / 252.3 MB, free: 5.852 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002056/0.006292, allocations: 1.026 MB / 253.4 MB, free: 4.816 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.006404, allocations: 7.938 kB / 253.4 MB, free: 4.809 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001023/0.007427, allocations: 322.9 kB / 253.7 MB, free: 4.492 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00051/0.007937, allocations: 207.2 kB / 253.9 MB, free: 4.289 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006341/0.008571, allocations: 263.3 kB / 254.1 MB, free: 4.031 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004483/0.009019, allocations: 343 kB / 254.5 MB, free: 3.695 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.00916, allocations: 40.56 kB / 254.5 MB, free: 3.656 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002932/0.009454, allocations: 191.5 kB / 254.7 MB, free: 3.469 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002158/0.009669, allocations: 131.6 kB / 254.8 MB, free: 3.34 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.634e-05/0.009716, allocations: 24 kB / 254.9 MB, free: 3.316 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002044/0.00992, allocations: 83.88 kB / 254.9 MB, free: 3.234 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.01006, allocations: 91.67 kB / 255 MB, free: 3.145 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.01018, allocations: 71.77 kB / 255.1 MB, free: 3.074 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00052/0.0107, allocations: 354.7 kB / 255.4 MB, free: 2.727 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.01071, allocations: 0 / 255.4 MB, free: 2.727 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.01071, allocations: 0 / 255.4 MB, free: 2.727 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.01071, allocations: 0 / 255.4 MB, free: 2.727 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.00112/0.01184, allocations: 0.7124 MB / 256.2 MB, free: 1.965 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.01188, allocations: 11.98 kB / 256.2 MB, free: 1.953 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.01198, allocations: 48.69 kB / 256.2 MB, free: 1.906 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000491/0.01247, allocations: 268.5 kB / 256.5 MB, free: 1.609 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.995e-05/0.0125, allocations: 16.23 kB / 256.5 MB, free: 1.594 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.549e-05/0.01253, allocations: 12.38 kB / 256.5 MB, free: 1.582 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002708/0.0128, allocations: 110.2 kB / 256.6 MB, free: 1.469 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.01281, allocations: 3.938 kB / 256.6 MB, free: 1.465 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.01282, allocations: 0 / 256.6 MB, free: 1.465 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.01283, allocations: 7.938 kB / 256.6 MB, free: 1.457 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000193/0.01303, allocations: 67.95 kB / 256.7 MB, free: 1.391 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000845/0.01387, allocations: 0.4915 MB / 257.2 MB, free: 0.8633 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000351/0.01422, allocations: 123.3 kB / 257.3 MB, free: 0.7305 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.01434, allocations: 51.66 kB / 257.3 MB, free: 0.6758 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.01436, allocations: 0 / 257.3 MB, free: 0.6758 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002498/0.01461, allocations: 113 kB / 257.5 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.01461, allocations: 0 / 257.5 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005679/0.01518, allocations: 208.5 kB / 257.7 MB, free: 352 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.01523, allocations: 55.41 kB / 257.7 MB, free: 284 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008619/0.01609, allocations: 470.2 kB / 258.2 MB, free: 15.8 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.601e-05/0.01613, allocations: 45.58 kB / 258.2 MB, free: 15.75 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002119/0.01634, allocations: 234.7 kB / 258.5 MB, free: 15.52 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.6e-05/0.01641, allocations: 51.62 kB / 258.5 MB, free: 15.47 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.01651, allocations: 55.36 kB / 258.6 MB, free: 15.41 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003918/0.0169, allocations: 0.5392 MB / 259.1 MB, free: 14.86 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.01702, allocations: 35.97 kB / 259.1 MB, free: 14.82 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002232/0.01724, allocations: 153.8 kB / 259.3 MB, free: 14.64 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002291/0.01747, allocations: 107 kB / 259.4 MB, free: 14.52 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.01747, allocations: 0 / 259.4 MB, free: 14.52 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003627/0.01783, allocations: 173.4 kB / 259.6 MB, free: 14.34 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.01785, allocations: 11.59 kB / 259.6 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.01786, allocations: 0 / 259.6 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.01788, allocations: 0 / 259.6 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.018, allocations: 27.98 kB / 259.6 MB, free: 14.31 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.01801, allocations: 3.938 kB / 259.6 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.01812, allocations: 23.88 kB / 259.6 MB, free: 14.28 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.01814, allocations: 8 kB / 259.6 MB, free: 14.27 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.0001846/0.01833, allocations: 182.6 kB / 259.8 MB, free: 14.08 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.416e-05/0.01839, allocations: 43.8 kB / 259.8 MB, free: 14.04 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004157/0.01881, allocations: 180.4 kB / 260 MB, free: 13.86 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.01881, allocations: 7.938 kB / 260 MB, free: 13.85 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.01881, allocations: 0 / 260 MB, free: 13.85 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.01882, allocations: 7.922 kB / 260 MB, free: 13.84 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003621/0.01918, allocations: 276.4 kB / 260.3 MB, free: 13.54 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.01919, allocations: 0 / 260.3 MB, free: 13.54 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.769e-05/0.01924, allocations: 16 kB / 260.3 MB, free: 13.52 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.01924, allocations: 0 / 260.3 MB, free: 13.52 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.01926, allocations: 3.984 kB / 260.3 MB, free: 13.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.76e-06/0.01927, allocations: 8 kB / 260.3 MB, free: 13.51 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.01927, allocations: 0 / 260.3 MB, free: 13.51 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004039/0.01967, allocations: 224 kB / 260.6 MB, free: 13.27 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.599e-05/0.01975, allocations: 31.8 kB / 260.6 MB, free: 13.23 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.312e-05/0.01979, allocations: 8 kB / 260.6 MB, free: 13.23 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.651e-05/0.01988, allocations: 11.98 kB / 260.6 MB, free: 13.21 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.756e-05/0.01994, allocations: 15.98 kB / 260.6 MB, free: 13.2 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.01996, allocations: 7.984 kB / 260.6 MB, free: 13.19 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003593/0.02032, allocations: 306.8 kB / 260.9 MB, free: 12.89 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02032, allocations: 0 / 260.9 MB, free: 12.89 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002926/0.02062, allocations: 51.92 kB / 261 MB, free: 12.84 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.003035/0.02365, allocations: 462.5 kB / 261.4 MB, free: 12.43 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003386/0.02399, allocations: 127.5 kB / 261.6 MB, free: 12.3 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.02399, allocations: 0 / 261.6 MB, free: 12.3 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001518/0.02414, allocations: 67.59 kB / 261.6 MB, free: 12.23 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004993/0.02464, allocations: 93.41 kB / 261.7 MB, free: 12.14 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008976/0.02554, allocations: 458.1 kB / 262.2 MB, free: 11.67 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/0.02577, allocations: 162 kB / 262.3 MB, free: 11.49 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.02589, allocations: 42.25 kB / 262.4 MB, free: 11.45 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.319e-05/0.02597, allocations: 28.5 kB / 262.4 MB, free: 11.42 MB / 250.7 MB Notification: Performance of SimCode: time 8.12e-07/0.02597, allocations: 3.938 kB / 262.4 MB, free: 11.42 MB / 250.7 MB Notification: Performance of Templates: time 0.0104/0.03637, allocations: 3.975 MB / 266.4 MB, free: 7.441 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","/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.496763420989737]