Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001452/0.001452, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001887/0.001887, allocations: 217.2 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.525/1.525, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 47.92 kB / 378.3 MB, free: 2.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2758, allocations: 53.36 MB / 431.6 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003601/0.2794, allocations: 2.059 MB / 433.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002311/0.2817, allocations: 1.31 MB / 435 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001259/0.2818, allocations: 3.938 kB / 435 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009333/0.2827, allocations: 315.1 kB / 435.3 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006128/0.2833, allocations: 263 kB / 435.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005807/0.2839, allocations: 227.5 kB / 435.8 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004413/0.2844, allocations: 359.1 kB / 436.1 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.2845, allocations: 44.86 kB / 436.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002102/0.2847, allocations: 155.4 kB / 436.3 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002138/0.2849, allocations: 163.3 kB / 436.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.697e-05/0.285, allocations: 20 kB / 436.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000195/0.2852, allocations: 95.86 kB / 436.6 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.2853, allocations: 87.73 kB / 436.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.2854, allocations: 127.2 kB / 436.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000462/0.2859, allocations: 368.7 kB / 437.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.2859, allocations: 0 / 437.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2859, allocations: 4 kB / 437.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.2859, allocations: 3.938 kB / 437.2 MB, free: 1.34 MB / 334.1 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.001029/0.2869, allocations: 0.6089 MB / 437.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.287, allocations: 8.031 kB / 437.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.568e-05/0.2871, allocations: 36.7 kB / 437.8 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004463/0.2875, allocations: 276.8 kB / 438.1 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.2875, allocations: 12.38 kB / 438.1 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.2876, allocations: 12.12 kB / 438.1 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002987/0.2878, allocations: 149.7 kB / 438.3 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.2879, allocations: 0 / 438.3 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.2879, allocations: 8 kB / 438.3 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.2879, allocations: 0 / 438.3 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001701/0.2881, allocations: 71.89 kB / 438.3 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007282/0.2888, allocations: 475.5 kB / 438.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003139/0.2891, allocations: 122.8 kB / 438.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/0.2892, allocations: 44.84 kB / 439 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.2892, allocations: 4 kB / 439 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000248/0.2895, allocations: 119.2 kB / 439.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.442e-06/0.2895, allocations: 0 / 439.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005289/0.29, allocations: 219.2 kB / 439.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.286e-05/0.2901, allocations: 106.8 kB / 439.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005447/0.2906, allocations: 457.6 kB / 439.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.532e-05/0.2907, allocations: 37.7 kB / 439.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.2908, allocations: 172 kB / 440.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.521e-05/0.2909, allocations: 39.69 kB / 440.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.226e-05/0.2909, allocations: 41.7 kB / 440.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.2911, allocations: 346.8 kB / 440.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.2912, allocations: 39.98 kB / 440.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.2914, allocations: 108.7 kB / 440.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002277/0.2916, allocations: 105.2 kB / 440.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2916, allocations: 0 / 440.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003633/0.292, allocations: 181.3 kB / 440.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.292, allocations: 14.97 kB / 440.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.292, allocations: 15.88 kB / 440.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.292, allocations: 0 / 440.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.2922, allocations: 27.92 kB / 441 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.2922, allocations: 0 / 441 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.2923, allocations: 15.95 kB / 441 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.2923, allocations: 4 kB / 441 MB, free: 13.29 MB / 350.1 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.0002276/0.2925, allocations: 179.4 kB / 441.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.42e-05/0.2926, allocations: 35.75 kB / 441.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004421/0.293, allocations: 184.5 kB / 441.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.293, allocations: 0 / 441.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.293, allocations: 0 / 441.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.293, allocations: 0 / 441.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000331/0.2934, allocations: 284.5 kB / 441.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2934, allocations: 0 / 441.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.687e-05/0.2934, allocations: 15.92 kB / 441.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.2934, allocations: 3.938 kB / 441.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.2934, allocations: 0 / 441.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.2934, allocations: 8 kB / 441.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2934, allocations: 0 / 441.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003609/0.2938, allocations: 200 kB / 441.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.322e-05/0.2939, allocations: 39.69 kB / 441.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.731e-05/0.2939, allocations: 11.94 kB / 441.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.043e-05/0.294, allocations: 4 kB / 441.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.414e-05/0.294, allocations: 19.97 kB / 441.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.2941, allocations: 4 kB / 441.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003727/0.2944, allocations: 335.1 kB / 442.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2944, allocations: 0 / 442.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003045/0.2947, allocations: 59.92 kB / 442.3 MB, free: 11.86 MB / 350.1 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 (15): * Single equations (assignments): 11 * 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.001586/0.2963, allocations: 425.2 kB / 442.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000312/0.2966, allocations: 115.9 kB / 442.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.2966, allocations: 0 / 442.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001295/0.2968, allocations: 51.92 kB / 442.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004441/0.2972, allocations: 97.53 kB / 443 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008483/0.2981, allocations: 0.4999 MB / 443.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004391/0.2985, allocations: 0.7832 MB / 444.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.2986, allocations: 42.27 kB / 444.3 MB, free: 9.973 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.848e-05/0.2987, allocations: 27.44 kB / 444.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2987, allocations: 0 / 444.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of Templates: time 0.008806/0.3075, allocations: 3.986 MB / 448.3 MB, free: 5.98 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.728000595001504]