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.001298/0.001298, allocations: 105.4 kB / 19.8 MB, free: 2.516 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.001557/0.001557, allocations: 215.3 kB / 23 MB, free: 5.609 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.493/1.493, allocations: 230.2 MB / 256.2 MB, free: 8.555 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.001875/0.001875, allocations: 64.03 kB / 376.5 MB, free: 3.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2915, allocations: 53.33 MB / 429.8 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003815/0.2953, allocations: 2.059 MB / 431.8 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002579/0.2979, allocations: 1.297 MB / 433.1 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001648/0.298, allocations: 4 kB / 433.1 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.299, allocations: 311.1 kB / 433.4 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006483/0.2997, allocations: 258.5 kB / 433.7 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006611/0.3003, allocations: 227.5 kB / 433.9 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004316/0.3008, allocations: 355.1 kB / 434.3 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.3009, allocations: 40.72 kB / 434.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/0.3011, allocations: 143.5 kB / 434.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002031/0.3013, allocations: 159.3 kB / 434.6 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.556e-05/0.3014, allocations: 20 kB / 434.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.3016, allocations: 91.86 kB / 434.7 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.3017, allocations: 91.67 kB / 434.8 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001348/0.3018, allocations: 127.2 kB / 434.9 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004931/0.3023, allocations: 367.8 kB / 435.3 MB, free: 2.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.3023, allocations: 0 / 435.3 MB, free: 2.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3023, allocations: 0 / 435.3 MB, free: 2.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.3023, allocations: 0 / 435.3 MB, free: 2.055 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.001094/0.3034, allocations: 0.688 MB / 436 MB, free: 1.305 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.3034, allocations: 8.031 kB / 436 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.254e-05/0.3035, allocations: 40.7 kB / 436 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004979/0.304, allocations: 338.7 kB / 436.4 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.3041, allocations: 8.375 kB / 436.4 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.476e-05/0.3041, allocations: 12.38 kB / 436.4 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000305/0.3044, allocations: 152.4 kB / 436.5 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3044, allocations: 0 / 436.5 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.3044, allocations: 7.938 kB / 436.5 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.3044, allocations: 4 kB / 436.5 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.3046, allocations: 65.19 kB / 436.6 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000728/0.3053, allocations: 0.4925 MB / 437.1 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003435/0.3057, allocations: 126.7 kB / 437.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.3058, allocations: 48.83 kB / 437.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.3058, allocations: 0 / 437.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002429/0.306, allocations: 122.3 kB / 437.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.3061, allocations: 3.938 kB / 437.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.000523/0.3066, allocations: 217.3 kB / 437.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.214e-05/0.3067, allocations: 102.8 kB / 437.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005488/0.3072, allocations: 461.6 kB / 438.1 MB, free: 14.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.927e-05/0.3072, allocations: 33.7 kB / 438.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.3074, allocations: 175.9 kB / 438.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.727e-05/0.3075, allocations: 35.69 kB / 438.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.38e-05/0.3075, allocations: 45.7 kB / 438.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002112/0.3077, allocations: 346.8 kB / 438.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.3078, allocations: 39.98 kB / 438.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.308, allocations: 113.9 kB / 438.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002152/0.3082, allocations: 98.56 kB / 439 MB, free: 14.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3082, allocations: 0 / 439 MB, free: 14.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003433/0.3086, allocations: 188 kB / 439.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.3086, allocations: 8 kB / 439.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3086, allocations: 0 / 439.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.3086, allocations: 3.938 kB / 439.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.3087, allocations: 27.92 kB / 439.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3087, allocations: 0 / 439.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.3088, allocations: 19.94 kB / 439.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.3089, allocations: 7.984 kB / 439.3 MB, free: 13.79 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.0001974/0.3091, allocations: 175.6 kB / 439.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.613e-05/0.3091, allocations: 27.81 kB / 439.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004071/0.3095, allocations: 188.5 kB / 439.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3095, allocations: 3.938 kB / 439.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3095, allocations: 0 / 439.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.3095, allocations: 3.938 kB / 439.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003316/0.3099, allocations: 313.4 kB / 440 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3099, allocations: 0 / 440 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.185e-05/0.3099, allocations: 11.94 kB / 440 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3099, allocations: 4 kB / 440 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.3099, allocations: 4 kB / 440 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.937e-06/0.3099, allocations: 11.92 kB / 440 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3099, allocations: 0 / 440 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003584/0.3103, allocations: 196.9 kB / 440.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.3104, allocations: 112.8 kB / 440.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.398e-05/0.3104, allocations: 8 kB / 440.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.854e-05/0.3105, allocations: 23.92 kB / 440.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.039e-05/0.3106, allocations: 7.984 kB / 440.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.146e-05/0.3106, allocations: 8 kB / 440.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003761/0.311, allocations: 331.1 kB / 440.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.311, allocations: 0 / 440.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003042/0.3113, allocations: 59.86 kB / 440.7 MB, free: 12.23 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.001567/0.3129, allocations: 427.7 kB / 441.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003239/0.3132, allocations: 118.9 kB / 441.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3132, allocations: 0 / 441.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.3133, allocations: 55.92 kB / 441.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004261/0.3137, allocations: 79.09 kB / 441.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008973/0.3146, allocations: 0.5077 MB / 441.9 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004661/0.3151, allocations: 0.7793 MB / 442.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001243/0.3152, allocations: 42.27 kB / 442.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.208e-05/0.3153, allocations: 27.44 kB / 442.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3153, allocations: 0 / 442.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Templates: time 0.008775/0.3241, allocations: 3.951 MB / 446.7 MB, free: 6.367 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.779845845885575]