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.0007779/0.0007779, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001039/0.001816, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0006973/0.0006973, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009356/0.001633, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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 0.8875/0.8875, allocations: 177.5 MB / 190 MB, free: 4.816 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08555/0.9731, allocations: 53.87 MB / 243.9 MB, free: 14.88 MB / 250.7 MB " [Timeout remaining time 179] 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 1.383e-06/1.383e-06, allocations: 0 / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.397e-05/1.535e-05, allocations: 6.312 kB / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002068/0.002084, allocations: 2.092 MB / 247.3 MB, free: 11.48 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.003458, allocations: 1.284 MB / 248.6 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.997e-05/0.003548, allocations: 3.938 kB / 248.6 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004652/0.004013, allocations: 295 kB / 248.9 MB, free: 9.898 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000321/0.004334, allocations: 278.8 kB / 249.1 MB, free: 9.625 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003147/0.004649, allocations: 235.2 kB / 249.4 MB, free: 9.395 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002777/0.004927, allocations: 355 kB / 249.7 MB, free: 9.047 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.005027, allocations: 50.8 kB / 249.8 MB, free: 9 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002379/0.005265, allocations: 269.5 kB / 250 MB, free: 8.734 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.005406, allocations: 135.6 kB / 250.2 MB, free: 8.602 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.536e-05/0.005431, allocations: 24 kB / 250.2 MB, free: 8.578 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001438/0.005575, allocations: 95.8 kB / 250.3 MB, free: 8.484 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.275e-05/0.005648, allocations: 75.72 kB / 250.4 MB, free: 8.41 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.287e-05/0.005701, allocations: 59.81 kB / 250.4 MB, free: 8.352 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002421/0.005943, allocations: 239 kB / 250.6 MB, free: 8.117 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.168e-06/0.005952, allocations: 0 / 250.6 MB, free: 8.117 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.005953, allocations: 0 / 250.6 MB, free: 8.117 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.005961, allocations: 0 / 250.6 MB, free: 8.117 MB / 250.7 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.0005756/0.006537, allocations: 0.6227 MB / 251.3 MB, free: 7.457 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.006583, allocations: 8.625 kB / 251.3 MB, free: 7.449 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.609e-05/0.006629, allocations: 32.92 kB / 251.3 MB, free: 7.418 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002213/0.00685, allocations: 244.8 kB / 251.6 MB, free: 7.148 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.006867, allocations: 12.38 kB / 251.6 MB, free: 7.137 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.006882, allocations: 8.375 kB / 251.6 MB, free: 7.129 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.006999, allocations: 94.62 kB / 251.7 MB, free: 7.031 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.007007, allocations: 8.172 kB / 251.7 MB, free: 7.023 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.007016, allocations: 4.375 kB / 251.7 MB, free: 7.02 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.007022, allocations: 7.938 kB / 251.7 MB, free: 7.012 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.05e-05/0.007062, allocations: 27.97 kB / 251.7 MB, free: 6.984 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003157/0.007378, allocations: 273.4 kB / 252 MB, free: 6.699 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.007495, allocations: 129.1 kB / 252.1 MB, free: 6.562 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.682e-05/0.007521, allocations: 20.84 kB / 252.1 MB, free: 6.539 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.076e-05/0.007532, allocations: 7.938 kB / 252.1 MB, free: 6.531 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001444/0.007677, allocations: 98.05 kB / 252.2 MB, free: 6.422 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.232e-06/0.007678, allocations: 0 / 252.2 MB, free: 6.422 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001421/0.00782, allocations: 101.6 kB / 252.3 MB, free: 6.316 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.397e-05/0.007844, allocations: 63.34 kB / 252.4 MB, free: 6.242 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.008037, allocations: 333 kB / 252.7 MB, free: 5.902 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.008057, allocations: 33.7 kB / 252.7 MB, free: 5.863 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.114e-05/0.008108, allocations: 136.9 kB / 252.9 MB, free: 5.727 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.808e-05/0.008136, allocations: 39.69 kB / 252.9 MB, free: 5.688 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.969e-05/0.008176, allocations: 41.67 kB / 253 MB, free: 5.641 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.959e-05/0.008255, allocations: 346.7 kB / 253.3 MB, free: 5.293 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.374e-05/0.008279, allocations: 18.81 kB / 253.3 MB, free: 5.273 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.358e-05/0.008333, allocations: 107.7 kB / 253.4 MB, free: 5.141 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.253e-05/0.008395, allocations: 75.53 kB / 253.5 MB, free: 5.059 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.008397, allocations: 0 / 253.5 MB, free: 5.059 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001017/0.008499, allocations: 108.4 kB / 253.6 MB, free: 4.945 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.00851, allocations: 4 kB / 253.6 MB, free: 4.941 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.008513, allocations: 4 kB / 253.6 MB, free: 4.938 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.257e-06/0.008522, allocations: 0 / 253.6 MB, free: 4.938 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.063e-05/0.008593, allocations: 23.98 kB / 253.6 MB, free: 4.914 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.259e-06/0.008598, allocations: 7.938 kB / 253.6 MB, free: 4.906 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.798e-05/0.008646, allocations: 19.95 kB / 253.7 MB, free: 4.887 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.543e-06/0.008653, allocations: 4 kB / 253.7 MB, free: 4.883 MB / 250.7 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 7.378e-05/0.008727, allocations: 134.6 kB / 253.8 MB, free: 4.742 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.133e-05/0.008748, allocations: 23.98 kB / 253.8 MB, free: 4.719 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001837/0.008932, allocations: 112.5 kB / 253.9 MB, free: 4.605 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.008933, allocations: 0 / 253.9 MB, free: 4.605 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-06/0.008935, allocations: 0 / 253.9 MB, free: 4.605 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.008938, allocations: 0 / 253.9 MB, free: 4.605 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001113/0.009049, allocations: 161.6 kB / 254.1 MB, free: 4.43 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.009052, allocations: 8 kB / 254.1 MB, free: 4.422 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.9e-05/0.009081, allocations: 12 kB / 254.1 MB, free: 4.41 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.284e-05/0.009103, allocations: 23.81 kB / 254.1 MB, free: 4.387 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.155e-06/0.009106, allocations: 3.984 kB / 254.1 MB, free: 4.383 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-06/0.009113, allocations: 8 kB / 254.1 MB, free: 4.375 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.009114, allocations: 0 / 254.1 MB, free: 4.375 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.009115, allocations: 3.938 kB / 254.1 MB, free: 4.371 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001084/0.009224, allocations: 137.8 kB / 254.3 MB, free: 4.219 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.419e-05/0.009248, allocations: 11.98 kB / 254.3 MB, free: 4.207 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.635e-05/0.009284, allocations: 8 kB / 254.3 MB, free: 4.199 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.225e-05/0.009317, allocations: 15.97 kB / 254.3 MB, free: 4.184 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.009328, allocations: 8 kB / 254.3 MB, free: 4.176 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001031/0.009431, allocations: 147.5 kB / 254.5 MB, free: 4.027 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009431, allocations: 0 / 254.5 MB, free: 4.027 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001478/0.009578, allocations: 55.94 kB / 254.5 MB, free: 3.973 MB / 250.7 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.001137/0.01072, allocations: 0.5456 MB / 255.1 MB, free: 3.648 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001207/0.01084, allocations: 75.94 kB / 255.1 MB, free: 3.574 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/0.01085, allocations: 4 kB / 255.1 MB, free: 3.57 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.419e-05/0.0109, allocations: 52.73 kB / 255.2 MB, free: 3.516 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/0.01121, allocations: 473.5 kB / 255.7 MB, free: 2.98 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005557/0.01176, allocations: 452.3 kB / 256.1 MB, free: 2.508 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.798e-05/0.01181, allocations: 100.2 kB / 256.2 MB, free: 2.391 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.126e-05/0.01188, allocations: 50.36 kB / 256.2 MB, free: 2.34 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.01199, allocations: 95.3 kB / 256.3 MB, free: 2.246 MB / 250.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01199, allocations: 7.938 kB / 256.3 MB, free: 2.238 MB / 250.7 MB Notification: Performance of Templates: time 0.006151/0.01814, allocations: 4.51 MB / 260.9 MB, free: 13.79 MB / 266.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.636419689282775]