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.001258/0.001258, allocations: 80.33 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001286/0.001286, allocations: 149.5 kB / 23.94 MB, free: 4.164 MB / 14.72 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 1.467/1.467, allocations: 173.3 MB / 200.4 MB, free: 12.86 MB / 190.1 MB " [Timeout remaining time 178] 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.373e-06/1.373e-06, allocations: 0 / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.224e-05/2.362e-05, allocations: 2.281 kB / 318.9 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003313/0.003337, allocations: 1.935 MB / 320.8 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.005259, allocations: 1.089 MB / 321.9 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.005392, allocations: 6.688 kB / 321.9 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000969/0.006361, allocations: 313.3 kB / 322.2 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005072/0.006868, allocations: 224.2 kB / 322.5 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007544/0.007622, allocations: 288.3 kB / 322.7 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004394/0.008062, allocations: 345.2 kB / 323.1 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.008199, allocations: 41.59 kB / 323.1 MB, free: 1 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002804/0.008479, allocations: 183.2 kB / 323.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.008702, allocations: 139.5 kB / 323.4 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.647e-05/0.008748, allocations: 26.09 kB / 323.5 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002253/0.008974, allocations: 86.16 kB / 323.5 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.009092, allocations: 90.62 kB / 323.6 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.009195, allocations: 75.61 kB / 323.7 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004983/0.009694, allocations: 349.6 kB / 324.1 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.009698, allocations: 0 / 324.1 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.009699, allocations: 0 / 324.1 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.009705, allocations: 0.75 kB / 324.1 MB, free: 0.6328 MB / 286.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.0009048/0.01061, allocations: 0.5943 MB / 324.6 MB, free: 124 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.01065, allocations: 18.58 kB / 324.7 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.126e-05/0.01073, allocations: 31.94 kB / 324.7 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004631/0.01119, allocations: 263 kB / 325 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.01122, allocations: 9.938 kB / 325 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.135e-05/0.01125, allocations: 16 kB / 325 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003028/0.01155, allocations: 123.6 kB / 325.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.01156, allocations: 4 kB / 325.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/0.01159, allocations: 5.703 kB / 325.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.0116, allocations: 2.281 kB / 325.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.01179, allocations: 74.83 kB / 325.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007494/0.01254, allocations: 408.8 kB / 325.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003723/0.01292, allocations: 130.3 kB / 325.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001268/0.01304, allocations: 45.16 kB / 325.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.01307, allocations: 6.078 kB / 325.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002728/0.01334, allocations: 111.8 kB / 325.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.704e-06/0.01334, allocations: 4 kB / 325.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005794/0.01392, allocations: 229.6 kB / 326.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.5e-05/0.01399, allocations: 56.5 kB / 326.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006196/0.01461, allocations: 434.1 kB / 326.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/0.01464, allocations: 28.84 kB / 326.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.0148, allocations: 173.9 kB / 326.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.694e-05/0.01485, allocations: 32.28 kB / 326.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.3e-05/0.01493, allocations: 51.05 kB / 326.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.01512, allocations: 341.2 kB / 327.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.01525, allocations: 50.78 kB / 327.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002018/0.01545, allocations: 144.9 kB / 327.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002426/0.0157, allocations: 118.6 kB / 327.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.0157, allocations: 0 / 327.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003748/0.01607, allocations: 180.5 kB / 327.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.01609, allocations: 5.875 kB / 327.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.0161, allocations: 3.938 kB / 327.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.01612, allocations: 11.02 kB / 327.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.01625, allocations: 25.8 kB / 327.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.01626, allocations: 1.094 kB / 327.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.01637, allocations: 21.73 kB / 327.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.01639, allocations: 5.125 kB / 327.7 MB, free: 14.08 MB / 302.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.0002053/0.01659, allocations: 171 kB / 327.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.079e-05/0.01664, allocations: 29.84 kB / 327.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004432/0.01709, allocations: 204.5 kB / 328.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.01709, allocations: 7.328 kB / 328.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.0171, allocations: 0 / 328.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.0171, allocations: 1.672 kB / 328.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003065/0.01741, allocations: 225.5 kB / 328.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.01741, allocations: 4 kB / 328.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.466e-05/0.01747, allocations: 11.84 kB / 328.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.01747, allocations: 1.062 kB / 328.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.01748, allocations: 3.047 kB / 328.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.364e-06/0.01749, allocations: 7.875 kB / 328.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.01749, allocations: 1.312 kB / 328.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000429/0.01792, allocations: 217.8 kB / 328.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.437e-05/0.01799, allocations: 31 kB / 328.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.051e-05/0.01804, allocations: 7.516 kB / 328.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.213e-05/0.01813, allocations: 10.2 kB / 328.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.895e-05/0.0182, allocations: 17.05 kB / 328.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.146e-05/0.01822, allocations: 7.344 kB / 328.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003841/0.0186, allocations: 315.6 kB / 329 MB, free: 13.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.0186, allocations: 0 / 329 MB, free: 13.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003199/0.01892, allocations: 57.84 kB / 329 MB, free: 13.32 MB / 302.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.001823/0.02075, allocations: 472.2 kB / 329.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003274/0.02107, allocations: 119.4 kB / 329.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.02108, allocations: 0 / 329.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001468/0.02122, allocations: 64.59 kB / 329.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004801/0.0217, allocations: 71.52 kB / 329.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009926/0.0227, allocations: 0.4992 MB / 330.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001914/0.02289, allocations: 169.4 kB / 330.4 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001378/0.02302, allocations: 43.09 kB / 330.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.822e-05/0.02311, allocations: 32.61 kB / 330.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.02311, allocations: 0 / 330.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of Templates: time 0.01011/0.03322, allocations: 3.969 MB / 334.5 MB, free: 10.91 MB / 302.1 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.5017802603542805]