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.0006136/0.0006136, allocations: 84 kB / 21.43 MB, free: 3.137 MB / 18.57 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.003014/0.003014, allocations: 141.3 kB / 24.68 MB, free: 8.898 MB / 18.57 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.8144/0.8144, allocations: 173.4 MB / 201.2 MB, free: 9.449 MB / 186.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.593e-06/1.593e-06, allocations: 0 / 319.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.141e-05/2.3e-05, allocations: 2.281 kB / 319.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.0023/0.002323, allocations: 1.941 MB / 321.6 MB, free: 3.91 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.003572, allocations: 1.099 MB / 322.7 MB, free: 2.809 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.403e-05/0.003656, allocations: 0 / 322.7 MB, free: 2.809 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005193/0.004176, allocations: 307 kB / 323 MB, free: 2.508 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002626/0.004438, allocations: 223.1 kB / 323.2 MB, free: 2.289 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000375/0.004813, allocations: 298 kB / 323.5 MB, free: 2.004 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002527/0.005066, allocations: 343 kB / 323.9 MB, free: 1.668 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.005167, allocations: 44.5 kB / 323.9 MB, free: 1.621 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.005315, allocations: 187.5 kB / 324.1 MB, free: 1.438 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001335/0.005449, allocations: 135.6 kB / 324.2 MB, free: 1.305 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/0.005473, allocations: 16 kB / 324.2 MB, free: 1.289 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001213/0.005594, allocations: 95.84 kB / 324.3 MB, free: 1.195 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.585e-05/0.00568, allocations: 87.7 kB / 324.4 MB, free: 1.109 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.36e-05/0.005744, allocations: 67.77 kB / 324.5 MB, free: 1.043 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000306/0.00605, allocations: 354.8 kB / 324.8 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.292e-06/0.006051, allocations: 0 / 324.8 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.006053, allocations: 4 kB / 324.8 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.006057, allocations: 0 / 324.8 MB, free: 0.6914 MB / 282.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.0005766/0.006633, allocations: 0.5965 MB / 325.4 MB, free: 56 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.006664, allocations: 12.86 kB / 325.4 MB, free: 44 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.851e-05/0.006712, allocations: 32.75 kB / 325.5 MB, free: 12 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002675/0.00698, allocations: 265.8 kB / 325.7 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.006996, allocations: 12.31 kB / 325.7 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.007013, allocations: 15.94 kB / 325.8 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000168/0.007181, allocations: 119.5 kB / 325.9 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.533e-06/0.007188, allocations: 0 / 325.9 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.929e-06/0.007198, allocations: 0 / 325.9 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.007203, allocations: 4 kB / 325.9 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001039/0.007307, allocations: 75.81 kB / 325.9 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004138/0.00772, allocations: 408.1 kB / 326.3 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.007907, allocations: 134.7 kB / 326.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.135e-05/0.007969, allocations: 48.84 kB / 326.5 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.007983, allocations: 0 / 326.5 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001369/0.00812, allocations: 111.3 kB / 326.6 MB, free: 14.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.008121, allocations: 3.984 kB / 326.6 MB, free: 14.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002992/0.00842, allocations: 236.7 kB / 326.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.782e-05/0.008448, allocations: 59.41 kB / 326.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003001/0.008748, allocations: 428.5 kB / 327.3 MB, free: 14.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.008767, allocations: 33.69 kB / 327.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.277e-05/0.00885, allocations: 168 kB / 327.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.13e-05/0.008881, allocations: 43.69 kB / 327.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.345e-05/0.008924, allocations: 45.64 kB / 327.6 MB, free: 13.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.847e-05/0.009013, allocations: 338.8 kB / 328 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.338e-05/0.009076, allocations: 47.97 kB / 328 MB, free: 13.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.009181, allocations: 143.7 kB / 328.1 MB, free: 13.17 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000122/0.009303, allocations: 118.5 kB / 328.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.009305, allocations: 0 / 328.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001918/0.009497, allocations: 177.4 kB / 328.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.009509, allocations: 8 kB / 328.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.009515, allocations: 3.938 kB / 328.4 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.009525, allocations: 0 / 328.4 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.65e-05/0.009591, allocations: 27.92 kB / 328.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.009596, allocations: 4.062 kB / 328.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.319e-05/0.009649, allocations: 23.88 kB / 328.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.009656, allocations: 4 kB / 328.5 MB, free: 12.79 MB / 298.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.0001054/0.009761, allocations: 167.8 kB / 328.7 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.469e-05/0.009786, allocations: 31.81 kB / 328.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002362/0.01002, allocations: 212.3 kB / 328.9 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.01002, allocations: 0 / 328.9 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.01003, allocations: 3.938 kB / 328.9 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-06/0.01003, allocations: 8 kB / 328.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/0.01018, allocations: 221.1 kB / 329.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.01018, allocations: 0 / 329.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.499e-05/0.0102, allocations: 12 kB / 329.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.01021, allocations: 4 kB / 329.2 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.769e-06/0.01022, allocations: 3.984 kB / 329.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.01022, allocations: 3.938 kB / 329.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.01022, allocations: 0 / 329.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001901/0.01041, allocations: 219.5 kB / 329.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.151e-05/0.01044, allocations: 35.8 kB / 329.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.741e-05/0.01047, allocations: 4 kB / 329.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.993e-05/0.01051, allocations: 15.92 kB / 329.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.367e-05/0.01055, allocations: 15.98 kB / 329.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.01057, allocations: 7.984 kB / 329.5 MB, free: 11.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002134/0.01078, allocations: 315 kB / 329.8 MB, free: 11.47 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01078, allocations: 0 / 329.8 MB, free: 11.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00018/0.01096, allocations: 55.88 kB / 329.8 MB, free: 11.42 MB / 298.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.000732/0.01169, allocations: 465.4 kB / 330.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000188/0.01188, allocations: 115.9 kB / 330.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.01188, allocations: 3.938 kB / 330.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.679e-05/0.01196, allocations: 63.88 kB / 330.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002337/0.01219, allocations: 75.61 kB / 330.5 MB, free: 10.9 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005527/0.01274, allocations: 0.5321 MB / 331.1 MB, free: 10.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001058/0.01285, allocations: 170 kB / 331.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.909e-05/0.0129, allocations: 32.48 kB / 331.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.0129, allocations: 0 / 331.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of Templates: time 0.004271/0.01717, allocations: 4.302 MB / 335.6 MB, free: 5.816 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.3422103663906455]