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.001306/0.001306, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.001429/0.001429, allocations: 213.7 kB / 24.5 MB, free: 4.148 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.435/1.435, allocations: 230.5 MB / 258.1 MB, free: 7.996 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.001931/0.001931, allocations: 68.08 kB / 379 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2431, allocations: 53.4 MB / 432.4 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003684/0.2467, allocations: 2.062 MB / 434.5 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002428/0.2492, allocations: 1.301 MB / 435.8 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001686/0.2493, allocations: 7.938 kB / 435.8 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009678/0.2503, allocations: 314.6 kB / 436.1 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006262/0.2509, allocations: 259.1 kB / 436.4 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006299/0.2516, allocations: 235.1 kB / 436.6 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004659/0.252, allocations: 359.1 kB / 436.9 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.2522, allocations: 40.91 kB / 437 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002003/0.2524, allocations: 151.4 kB / 437.1 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002296/0.2526, allocations: 163.3 kB / 437.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.944e-05/0.2526, allocations: 20 kB / 437.3 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002084/0.2529, allocations: 91.92 kB / 437.4 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.253, allocations: 91.67 kB / 437.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.2531, allocations: 123.2 kB / 437.6 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004929/0.2536, allocations: 375.6 kB / 438 MB, free: 1.211 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2536, allocations: 4 kB / 438 MB, free: 1.207 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2536, allocations: 4 kB / 438 MB, free: 1.203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.2536, allocations: 0 / 438 MB, free: 1.203 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.001053/0.2547, allocations: 0.6011 MB / 438.6 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.2547, allocations: 12.03 kB / 438.6 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.705e-05/0.2548, allocations: 36.7 kB / 438.6 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004665/0.2553, allocations: 280.8 kB / 438.9 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.2553, allocations: 8.375 kB / 438.9 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.2553, allocations: 12.38 kB / 438.9 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003228/0.2557, allocations: 155.3 kB / 439.1 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.2557, allocations: 0 / 439.1 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.2557, allocations: 8 kB / 439.1 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.2557, allocations: 0 / 439.1 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002046/0.2559, allocations: 72.03 kB / 439.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007669/0.2567, allocations: 471.4 kB / 439.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003516/0.257, allocations: 126.7 kB / 439.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/0.2571, allocations: 48.83 kB / 439.8 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.2572, allocations: 8 kB / 439.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002492/0.2574, allocations: 114.4 kB / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.2574, allocations: 0 / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005197/0.2579, allocations: 221.3 kB / 440.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.02e-05/0.258, allocations: 106.8 kB / 440.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005595/0.2586, allocations: 453.6 kB / 440.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.2586, allocations: 41.64 kB / 440.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.2587, allocations: 168 kB / 440.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.986e-05/0.2588, allocations: 47.67 kB / 440.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.726e-05/0.2589, allocations: 41.7 kB / 441 MB, free: 14.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.2591, allocations: 342.8 kB / 441.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.2592, allocations: 43.98 kB / 441.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.2593, allocations: 112.7 kB / 441.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002226/0.2596, allocations: 102 kB / 441.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2596, allocations: 0 / 441.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000343/0.2599, allocations: 181.3 kB / 441.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.2599, allocations: 12.06 kB / 441.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.2599, allocations: 0 / 441.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.26, allocations: 3.938 kB / 441.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.2601, allocations: 31.86 kB / 441.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.2601, allocations: 0 / 441.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.2602, allocations: 19.94 kB / 441.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.2602, allocations: 4 kB / 441.8 MB, free: 13.14 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.0001875/0.2604, allocations: 171.5 kB / 442 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.76e-05/0.2605, allocations: 31.81 kB / 442 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004084/0.2609, allocations: 188.5 kB / 442.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.2609, allocations: 3.938 kB / 442.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2609, allocations: 0 / 442.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2609, allocations: 4 kB / 442.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003244/0.2612, allocations: 280.5 kB / 442.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2612, allocations: 0 / 442.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.098e-05/0.2612, allocations: 8 kB / 442.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.2613, allocations: 0 / 442.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.2613, allocations: 4 kB / 442.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.2613, allocations: 7.938 kB / 442.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2613, allocations: 0 / 442.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003589/0.2616, allocations: 200.8 kB / 442.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.36e-05/0.2617, allocations: 39.69 kB / 442.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.733e-05/0.2617, allocations: 12 kB / 442.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.537e-05/0.2618, allocations: 11.92 kB / 442.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.847e-05/0.2619, allocations: 15.98 kB / 442.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.2619, allocations: 8 kB / 442.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003972/0.2623, allocations: 331.1 kB / 443.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2623, allocations: 4 kB / 443.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002989/0.2626, allocations: 51.94 kB / 443.1 MB, free: 11.73 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.001609/0.2642, allocations: 425.6 kB / 443.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003506/0.2646, allocations: 118.8 kB / 443.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2646, allocations: 0 / 443.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.2647, allocations: 51.91 kB / 443.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004467/0.2651, allocations: 81.39 kB / 443.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009611/0.2661, allocations: 0.5405 MB / 444.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.2665, allocations: 0.787 MB / 445.1 MB, free: 9.816 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.441e-05/0.2666, allocations: 27.44 kB / 445.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2666, allocations: 0 / 445.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of Templates: time 0.007522/0.2741, allocations: 4.309 MB / 449.5 MB, free: 5.484 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/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: 7.55927954101935]