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.001476/0.001476, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001614/0.001614, allocations: 212.3 kB / 23.73 MB, free: 4.16 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.577/1.577, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.001571/0.001571, allocations: 47.92 kB / 378.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2842, allocations: 53.37 MB / 431.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00399/0.2881, allocations: 1.977 MB / 433.5 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002525/0.2907, allocations: 1.22 MB / 434.8 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001592/0.2908, allocations: 3.938 kB / 434.8 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009663/0.2918, allocations: 322.4 kB / 435.1 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005841/0.2924, allocations: 259.1 kB / 435.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005294/0.2929, allocations: 234.3 kB / 435.6 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004229/0.2933, allocations: 359 kB / 435.9 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.2935, allocations: 40.86 kB / 436 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000207/0.2937, allocations: 151.4 kB / 436.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002642/0.2939, allocations: 155.4 kB / 436.3 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.886e-05/0.294, allocations: 20 kB / 436.3 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001961/0.2942, allocations: 91.86 kB / 436.4 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.2943, allocations: 87.75 kB / 436.4 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.2944, allocations: 103.3 kB / 436.5 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004574/0.2949, allocations: 368.7 kB / 436.9 MB, free: 1.379 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2949, allocations: 3.938 kB / 436.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2949, allocations: 0 / 436.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.77e-06/0.2949, allocations: 0 / 436.9 MB, free: 1.375 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.00101/0.2959, allocations: 0.6088 MB / 437.5 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.2959, allocations: 8.031 kB / 437.5 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.75e-05/0.296, allocations: 40.69 kB / 437.6 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005443/0.2965, allocations: 272.8 kB / 437.8 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/0.2966, allocations: 8.375 kB / 437.8 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.825e-05/0.2966, allocations: 16.12 kB / 437.9 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003787/0.297, allocations: 119.2 kB / 438 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.297, allocations: 0 / 438 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.005e-05/0.297, allocations: 4 kB / 438 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.2971, allocations: 4 kB / 438 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002425/0.2973, allocations: 79.75 kB / 438.1 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000936/0.2982, allocations: 416.2 kB / 438.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004555/0.2987, allocations: 134.7 kB / 438.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.2988, allocations: 44.83 kB / 438.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.383e-05/0.2989, allocations: 4 kB / 438.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00031/0.2992, allocations: 111.3 kB / 438.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.803e-06/0.2992, allocations: 0 / 438.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007203/0.2999, allocations: 229.3 kB / 439 MB, free: 15.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/0.3, allocations: 59.41 kB / 439 MB, free: 15.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007628/0.3007, allocations: 461.6 kB / 439.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.209e-05/0.3008, allocations: 29.7 kB / 439.5 MB, free: 14.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/0.3009, allocations: 179.9 kB / 439.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.359e-05/0.301, allocations: 35.69 kB / 439.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-05/0.3011, allocations: 41.7 kB / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002165/0.3013, allocations: 354.7 kB / 440.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/0.3015, allocations: 43.98 kB / 440.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002802/0.3018, allocations: 150.2 kB / 440.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003127/0.3021, allocations: 113.6 kB / 440.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.3021, allocations: 3.938 kB / 440.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000496/0.3026, allocations: 185.3 kB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.3026, allocations: 4 kB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.3026, allocations: 0 / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.518e-05/0.3026, allocations: 7.938 kB / 440.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.3028, allocations: 27.92 kB / 440.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.3028, allocations: 4 kB / 440.6 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/0.303, allocations: 15.89 kB / 440.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.303, allocations: 12.05 kB / 440.7 MB, free: 13.39 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.000232/0.3032, allocations: 171.5 kB / 440.8 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.822e-05/0.3033, allocations: 31.81 kB / 440.9 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005661/0.3038, allocations: 208.4 kB / 441.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.3038, allocations: 0 / 441.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3038, allocations: 0 / 441.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.3039, allocations: 7.984 kB / 441.1 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003945/0.3043, allocations: 221.1 kB / 441.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3043, allocations: 4 kB / 441.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.657e-05/0.3043, allocations: 19.94 kB / 441.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3043, allocations: 0 / 441.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/0.3044, allocations: 7.984 kB / 441.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.3044, allocations: 3.938 kB / 441.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3044, allocations: 0 / 441.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000525/0.3049, allocations: 219.2 kB / 441.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.173e-05/0.305, allocations: 31.8 kB / 441.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.513e-05/0.305, allocations: 8 kB / 441.6 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.3051, allocations: 7.938 kB / 441.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.97e-05/0.3052, allocations: 23.97 kB / 441.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.533e-05/0.3052, allocations: 4 kB / 441.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005699/0.3058, allocations: 343.1 kB / 442 MB, free: 12.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3058, allocations: 0 / 442 MB, free: 12.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004111/0.3062, allocations: 47.94 kB / 442 MB, free: 12 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 (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.002024/0.3082, allocations: 458.5 kB / 442.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004178/0.3087, allocations: 123.3 kB / 442.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3087, allocations: 4.125 kB / 442.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.3089, allocations: 63.91 kB / 442.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005783/0.3094, allocations: 83.69 kB / 442.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.3107, allocations: 0.5129 MB / 443.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/0.3109, allocations: 174.1 kB / 443.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001638/0.3111, allocations: 38.27 kB / 443.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.836e-05/0.3112, allocations: 35.42 kB / 443.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3112, allocations: 4 kB / 443.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of Templates: time 0.01279/0.324, allocations: 4.237 MB / 447.7 MB, free: 6.477 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.66506490111351]