Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001972/0.001972, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002704/0.002704, allocations: 204.5 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.609/1.609, allocations: 230.5 MB / 257.4 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 63.91 kB / 378.2 MB, free: 2.332 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2795, allocations: 53.41 MB / 431.6 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003574/0.2831, allocations: 1.977 MB / 433.6 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002559/0.2857, allocations: 1.223 MB / 434.8 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.2858, allocations: 7.938 kB / 434.8 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009523/0.2867, allocations: 315.1 kB / 435.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000611/0.2874, allocations: 262.1 kB / 435.4 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006271/0.288, allocations: 231.4 kB / 435.6 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004525/0.2884, allocations: 359.1 kB / 436 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.2886, allocations: 36.92 kB / 436 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002005/0.2888, allocations: 151.4 kB / 436.2 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002323/0.289, allocations: 159.3 kB / 436.3 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.307e-05/0.2891, allocations: 20 kB / 436.3 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002213/0.2893, allocations: 91.88 kB / 436.4 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001402/0.2894, allocations: 91.67 kB / 436.5 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001364/0.2896, allocations: 99.39 kB / 436.6 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006049/0.2902, allocations: 368.7 kB / 437 MB, free: 1.184 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.2902, allocations: 0 / 437 MB, free: 1.184 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2902, allocations: 0 / 437 MB, free: 1.184 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.2902, allocations: 0 / 437 MB, free: 1.184 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.001247/0.2914, allocations: 0.6049 MB / 437.6 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.2915, allocations: 15.98 kB / 437.6 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.691e-05/0.2916, allocations: 40.7 kB / 437.6 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000499/0.2921, allocations: 276.8 kB / 437.9 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.2921, allocations: 4.375 kB / 437.9 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.2921, allocations: 12.38 kB / 437.9 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000304/0.2924, allocations: 128.8 kB / 438 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.2924, allocations: 3.938 kB / 438 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.2924, allocations: 8 kB / 438.1 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.2924, allocations: 0 / 438.1 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002088/0.2927, allocations: 76.03 kB / 438.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007715/0.2934, allocations: 420 kB / 438.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003567/0.2938, allocations: 126.7 kB / 438.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.2939, allocations: 44.84 kB / 438.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.567e-05/0.2939, allocations: 0 / 438.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002606/0.2942, allocations: 115.3 kB / 438.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.243e-06/0.2942, allocations: 0 / 438.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005699/0.2947, allocations: 237.2 kB / 439 MB, free: 14.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.014e-05/0.2948, allocations: 55.34 kB / 439.1 MB, free: 14.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006008/0.2954, allocations: 461.6 kB / 439.6 MB, free: 14.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.904e-05/0.2954, allocations: 29.7 kB / 439.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.2956, allocations: 176 kB / 439.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.658e-05/0.2956, allocations: 43.67 kB / 439.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.757e-05/0.2957, allocations: 41.7 kB / 439.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.2959, allocations: 342.8 kB / 440.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.296, allocations: 47.97 kB / 440.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.2962, allocations: 146.4 kB / 440.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002218/0.2964, allocations: 121.7 kB / 440.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2964, allocations: 0 / 440.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003371/0.2968, allocations: 177.4 kB / 440.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.2968, allocations: 8 kB / 440.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.2968, allocations: 3.984 kB / 440.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.2968, allocations: 0 / 440.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.2969, allocations: 28.03 kB / 440.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.297, allocations: 7.922 kB / 440.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.2971, allocations: 19.89 kB / 440.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.2971, allocations: 4 kB / 440.7 MB, free: 13.21 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.0001969/0.2973, allocations: 175.6 kB / 440.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.727e-05/0.2973, allocations: 27.81 kB / 440.9 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005024/0.2978, allocations: 204.4 kB / 441.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2978, allocations: 7.984 kB / 441.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.2978, allocations: 7.938 kB / 441.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2978, allocations: 0 / 441.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002757/0.2981, allocations: 229.1 kB / 441.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2981, allocations: 0 / 441.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.299e-05/0.2982, allocations: 12 kB / 441.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2982, allocations: 4 kB / 441.4 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.2982, allocations: 3.938 kB / 441.4 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2982, allocations: 0 / 441.4 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.2982, allocations: 7.938 kB / 441.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003912/0.2986, allocations: 227.3 kB / 441.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.165e-05/0.2986, allocations: 35.75 kB / 441.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.372e-05/0.2987, allocations: 8 kB / 441.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.552e-05/0.2988, allocations: 7.984 kB / 441.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.759e-05/0.2989, allocations: 19.91 kB / 441.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.783e-05/0.2989, allocations: 8 kB / 441.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004732/0.2994, allocations: 335.1 kB / 442 MB, free: 11.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2994, allocations: 0 / 442 MB, free: 11.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.2997, allocations: 51.92 kB / 442.1 MB, free: 11.81 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.001674/0.3013, allocations: 455.2 kB / 442.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000356/0.3017, allocations: 115.9 kB / 442.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3017, allocations: 0 / 442.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001494/0.3018, allocations: 66.72 kB / 442.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000455/0.3023, allocations: 73.06 kB / 442.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/0.3034, allocations: 0.5168 MB / 443.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002202/0.3036, allocations: 178.2 kB / 443.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001338/0.3037, allocations: 50.27 kB / 443.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.45e-05/0.3038, allocations: 31.38 kB / 443.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3038, allocations: 0 / 443.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Templates: time 0.01037/0.3142, allocations: 4.236 MB / 447.8 MB, free: 6.242 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.715774780139327]