Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001526/0.002586, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009881/0.0009881, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001355/0.002343, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9292/0.9292, allocations: 173.3 MB / 185.8 MB, free: 9.004 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09069/1.02, allocations: 52.5 MB / 238.3 MB, free: 4.441 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 239.5 MB, free: 3.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.448e-05/1.599e-05, allocations: 6.312 kB / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003273/0.003289, allocations: 2.048 MB / 241.6 MB, free: 1.129 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.005249, allocations: 1.153 MB / 242.7 MB, free: 15.97 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.00538, allocations: 7.938 kB / 242.7 MB, free: 15.96 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007429/0.006123, allocations: 295 kB / 243 MB, free: 15.67 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004057/0.006528, allocations: 231.1 kB / 243.3 MB, free: 15.45 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006554/0.007184, allocations: 283.3 kB / 243.5 MB, free: 15.17 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003924/0.007576, allocations: 335.1 kB / 243.9 MB, free: 14.84 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.00771, allocations: 42.48 kB / 243.9 MB, free: 14.8 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003351/0.008045, allocations: 261.3 kB / 244.2 MB, free: 14.54 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001878/0.008233, allocations: 131.7 kB / 244.3 MB, free: 14.41 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.708e-05/0.00827, allocations: 20 kB / 244.3 MB, free: 14.39 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001978/0.008467, allocations: 95.78 kB / 244.4 MB, free: 14.3 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.00857, allocations: 75.72 kB / 244.5 MB, free: 14.22 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.17e-05/0.008652, allocations: 59.81 kB / 244.5 MB, free: 14.16 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003378/0.008989, allocations: 235 kB / 244.8 MB, free: 13.93 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.708e-05/0.009006, allocations: 4 kB / 244.8 MB, free: 13.93 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.009007, allocations: 0 / 244.8 MB, free: 13.93 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.925e-05/0.009026, allocations: 0 / 244.8 MB, free: 13.93 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.0008173/0.009844, allocations: 0.5956 MB / 245.4 MB, free: 13.3 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.009877, allocations: 8.031 kB / 245.4 MB, free: 13.29 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.073e-05/0.009938, allocations: 24.91 kB / 245.4 MB, free: 13.27 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003295/0.01027, allocations: 250.3 kB / 245.6 MB, free: 12.99 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.01029, allocations: 12.36 kB / 245.7 MB, free: 12.98 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.211e-05/0.01031, allocations: 19.94 kB / 245.7 MB, free: 12.96 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/0.0105, allocations: 88.31 kB / 245.8 MB, free: 12.87 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.01051, allocations: 0 / 245.8 MB, free: 12.87 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.01052, allocations: 8 kB / 245.8 MB, free: 12.86 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.01053, allocations: 3.984 kB / 245.8 MB, free: 12.86 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.939e-05/0.0106, allocations: 27.23 kB / 245.8 MB, free: 12.83 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004677/0.01107, allocations: 269.6 kB / 246.1 MB, free: 12.55 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001819/0.01125, allocations: 125.2 kB / 246.2 MB, free: 12.42 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.836e-05/0.0113, allocations: 32.78 kB / 246.2 MB, free: 12.38 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.01131, allocations: 0 / 246.2 MB, free: 12.38 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004327/0.01174, allocations: 90.16 kB / 246.3 MB, free: 12.28 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.172e-06/0.01175, allocations: 0 / 246.3 MB, free: 12.28 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001615/0.01191, allocations: 109.2 kB / 246.4 MB, free: 12.17 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.639e-05/0.01193, allocations: 59.28 kB / 246.5 MB, free: 12.1 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001937/0.01213, allocations: 324.5 kB / 246.8 MB, free: 11.77 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.01215, allocations: 29.7 kB / 246.8 MB, free: 11.73 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.095e-05/0.0122, allocations: 137 kB / 246.9 MB, free: 11.6 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.001e-05/0.01223, allocations: 43.67 kB / 247 MB, free: 11.55 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.437e-05/0.01227, allocations: 37.69 kB / 247 MB, free: 11.51 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.945e-05/0.01236, allocations: 342.8 kB / 247.4 MB, free: 11.17 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.962e-05/0.01239, allocations: 18.81 kB / 247.4 MB, free: 11.15 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.9e-05/0.01245, allocations: 106.6 kB / 247.5 MB, free: 11.02 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.34e-05/0.01251, allocations: 72.11 kB / 247.6 MB, free: 10.94 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.01252, allocations: 0 / 247.6 MB, free: 10.94 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 9.981e-05/0.01262, allocations: 112.4 kB / 247.7 MB, free: 10.82 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.01263, allocations: 4 kB / 247.7 MB, free: 10.82 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.01263, allocations: 4 kB / 247.7 MB, free: 10.81 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.316e-06/0.01264, allocations: 0 / 247.7 MB, free: 10.81 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.831e-05/0.01272, allocations: 35.86 kB / 247.7 MB, free: 10.78 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.01273, allocations: 11.92 kB / 247.7 MB, free: 10.77 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.541e-05/0.01277, allocations: 11.95 kB / 247.7 MB, free: 10.75 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-06/0.01278, allocations: 7.984 kB / 247.7 MB, free: 10.75 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 8.218e-05/0.01286, allocations: 134.7 kB / 247.9 MB, free: 10.6 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.806e-05/0.01288, allocations: 15.98 kB / 247.9 MB, free: 10.59 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001225/0.013, allocations: 116.5 kB / 248 MB, free: 10.46 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.01301, allocations: 4 kB / 248 MB, free: 10.46 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.01301, allocations: 3.938 kB / 248 MB, free: 10.46 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.01301, allocations: 0 / 248 MB, free: 10.46 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001075/0.01312, allocations: 141.7 kB / 248.1 MB, free: 10.3 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.01312, allocations: 0 / 248.1 MB, free: 10.3 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.962e-05/0.01315, allocations: 15.98 kB / 248.2 MB, free: 10.29 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.447e-05/0.01317, allocations: 27.75 kB / 248.2 MB, free: 10.26 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.01318, allocations: 8 kB / 248.2 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.156e-06/0.01319, allocations: 7.984 kB / 248.2 MB, free: 10.24 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.01319, allocations: 0 / 248.2 MB, free: 10.24 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.01319, allocations: 3.938 kB / 248.2 MB, free: 10.24 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.742e-05/0.01329, allocations: 136.6 kB / 248.3 MB, free: 10.09 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.376e-05/0.01331, allocations: 4 kB / 248.3 MB, free: 10.09 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.643e-05/0.01335, allocations: 11.98 kB / 248.4 MB, free: 10.07 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.828e-05/0.01339, allocations: 15.97 kB / 248.4 MB, free: 10.06 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/0.0134, allocations: 4 kB / 248.4 MB, free: 10.05 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.666e-05/0.01349, allocations: 135.4 kB / 248.5 MB, free: 9.918 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01349, allocations: 0 / 248.5 MB, free: 9.918 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001441/0.01364, allocations: 55.94 kB / 248.6 MB, free: 9.863 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.001153/0.01479, allocations: 0.5624 MB / 249.1 MB, free: 9.574 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000123/0.01491, allocations: 68.77 kB / 249.2 MB, free: 9.504 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/0.01492, allocations: 7.938 kB / 249.2 MB, free: 9.496 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.899e-05/0.01497, allocations: 51.41 kB / 249.3 MB, free: 9.445 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002045/0.01517, allocations: 100.8 kB / 249.4 MB, free: 9.348 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006144/0.01579, allocations: 442.7 kB / 249.8 MB, free: 8.883 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.778e-05/0.01585, allocations: 100.2 kB / 249.9 MB, free: 8.766 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.508e-05/0.01591, allocations: 34.27 kB / 249.9 MB, free: 8.734 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.01602, allocations: 103.3 kB / 250 MB, free: 8.633 MB / 250.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01602, allocations: 0 / 250 MB, free: 8.633 MB / 250.7 MB Notification: Performance of Templates: time 0.006383/0.02241, allocations: 4.425 MB / 254.4 MB, free: 4.277 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.6344884438440204]