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.00159/0.00159, allocations: 116.8 kB / 19.18 MB, free: 3.762 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.001692/0.001692, allocations: 210.6 kB / 22.13 MB, free: 0.8125 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.456/1.456, allocations: 230.2 MB / 255.1 MB, free: 15.26 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.001847/0.001847, allocations: 64.09 kB / 374.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09415/0.09599, allocations: 53.32 MB / 427.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003715/0.09971, allocations: 2.029 MB / 429.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002307/0.102, allocations: 1.292 MB / 431.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.1021, allocations: 7.875 kB / 431.2 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008689/0.103, allocations: 303.1 kB / 431.5 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006018/0.1036, allocations: 259.1 kB / 431.7 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005821/0.1042, allocations: 225.7 kB / 431.9 MB, free: 384 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004323/0.1046, allocations: 351.1 kB / 432.3 MB, free: 32 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1724/0.277, allocations: 40.64 kB / 432.3 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003491/0.2774, allocations: 149.8 kB / 432.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002409/0.2776, allocations: 157.5 kB / 432.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.62e-05/0.2776, allocations: 22.97 kB / 432.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002594/0.2779, allocations: 88.61 kB / 432.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.278, allocations: 88.69 kB / 432.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.2781, allocations: 127.6 kB / 432.9 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004542/0.2786, allocations: 366.2 kB / 433.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2786, allocations: 0.9062 kB / 433.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2786, allocations: 0 / 433.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.034e-06/0.2786, allocations: 0.5312 kB / 433.3 MB, free: 8.172 MB / 350.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.0008638/0.2795, allocations: 0.6827 MB / 434 MB, free: 7.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.2795, allocations: 10.91 kB / 434 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.16e-05/0.2796, allocations: 37.14 kB / 434 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003508/0.2799, allocations: 340.6 kB / 434.3 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.28, allocations: 9.188 kB / 434.4 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.111e-05/0.28, allocations: 14.81 kB / 434.4 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002582/0.2802, allocations: 148 kB / 434.5 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.2803, allocations: 3.938 kB / 434.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/0.2803, allocations: 4.625 kB / 434.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2803, allocations: 7 kB / 434.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001524/0.2804, allocations: 68.73 kB / 434.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005499/0.281, allocations: 0.4905 MB / 435.1 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002987/0.2813, allocations: 125.1 kB / 435.2 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.2814, allocations: 47.08 kB / 435.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.2814, allocations: 7.938 kB / 435.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001935/0.2816, allocations: 109 kB / 435.4 MB, free: 6.934 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.2816, allocations: 0 / 435.4 MB, free: 6.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004711/0.2821, allocations: 220.1 kB / 435.6 MB, free: 6.879 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.2821, allocations: 109.1 kB / 435.7 MB, free: 6.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004545/0.2826, allocations: 461.2 kB / 436.1 MB, free: 6.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.2826, allocations: 34.52 kB / 436.2 MB, free: 6.602 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.322e-05/0.2827, allocations: 165.2 kB / 436.3 MB, free: 6.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.566e-05/0.2827, allocations: 44.86 kB / 436.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.592e-05/0.2828, allocations: 43.34 kB / 436.4 MB, free: 6.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.735e-05/0.2828, allocations: 345.6 kB / 436.8 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.2829, allocations: 41.59 kB / 436.8 MB, free: 6.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.2831, allocations: 110.2 kB / 436.9 MB, free: 6.105 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001855/0.2833, allocations: 104.1 kB / 437 MB, free: 6.082 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2833, allocations: 0 / 437 MB, free: 6.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002966/0.2836, allocations: 187.3 kB / 437.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.2836, allocations: 6.25 kB / 437.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.2836, allocations: 0 / 437.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.2836, allocations: 2.312 kB / 437.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.2837, allocations: 23.92 kB / 437.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.2837, allocations: 8.156 kB / 437.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.2838, allocations: 19.36 kB / 437.3 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.2838, allocations: 5.094 kB / 437.3 MB, free: 6.016 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.0001282/0.284, allocations: 173 kB / 437.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.376e-05/0.284, allocations: 33.69 kB / 437.5 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.54e-05/0.2841, allocations: 36.78 kB / 437.5 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.2841, allocations: 5.281 kB / 437.5 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.2841, allocations: 2.312 kB / 437.5 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2841, allocations: 0 / 437.5 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002319/0.2843, allocations: 311.7 kB / 437.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2843, allocations: 3.75 kB / 437.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.86e-05/0.2844, allocations: 11.19 kB / 437.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.2844, allocations: 2.297 kB / 437.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.2844, allocations: 6.75 kB / 437.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2844, allocations: 7.672 kB / 437.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.2844, allocations: 4.062 kB / 437.8 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003176/0.2847, allocations: 204.7 kB / 438 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.01e-05/0.2847, allocations: 104 kB / 438.1 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.263e-05/0.2848, allocations: 7.984 kB / 438.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.912e-05/0.2849, allocations: 13.77 kB / 438.2 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.423e-05/0.2849, allocations: 11.47 kB / 438.2 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.285, allocations: 14.14 kB / 438.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003176/0.2853, allocations: 335 kB / 438.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2853, allocations: 0 / 438.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003117/0.2856, allocations: 55.16 kB / 438.6 MB, free: 5.387 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,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * 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.001475/0.2871, allocations: 431.9 kB / 439 MB, free: 5.223 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003096/0.2874, allocations: 112.5 kB / 439.1 MB, free: 5.223 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2874, allocations: 5.344 kB / 439.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001256/0.2875, allocations: 53.27 kB / 439.2 MB, free: 5.219 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000438/0.2879, allocations: 76.53 kB / 439.2 MB, free: 5.211 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000781/0.2887, allocations: 0.5361 MB / 439.8 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002076/0.2889, allocations: 0.7777 MB / 440.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.229e-05/0.289, allocations: 32.77 kB / 440.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.289, allocations: 0 / 440.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of Templates: time 0.007811/0.2968, allocations: 4.323 MB / 444.9 MB, free: 3.738 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.673064270988107]