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.001078/0.001078, allocations: 87.67 kB / 21.19 MB, free: 3.371 MB / 18.57 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.001264/0.001264, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 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.008/1.008, allocations: 177 MB / 204.8 MB, free: 5.602 MB / 186.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 2.494e-06/2.494e-06, allocations: 3.938 kB / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.953e-05/5.203e-05, allocations: 5.266 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003864/0.003916, allocations: 2.047 MB / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.005656, allocations: 1.262 MB / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.005788, allocations: 7.938 kB / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007971/0.006585, allocations: 319 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004557/0.007041, allocations: 262.9 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004471/0.007488, allocations: 231.3 kB / 277 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003341/0.007822, allocations: 363 kB / 277.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.007962, allocations: 44.91 kB / 277.4 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002006/0.008163, allocations: 199.4 kB / 277.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001724/0.008335, allocations: 139.6 kB / 277.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.177e-05/0.008367, allocations: 20 kB / 277.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001611/0.008528, allocations: 79.88 kB / 277.8 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.008632, allocations: 95.67 kB / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.051e-05/0.008712, allocations: 75.7 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003432/0.009055, allocations: 270.9 kB / 278.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.009061, allocations: 3.984 kB / 278.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.009063, allocations: 0 / 278.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.009069, allocations: 0 / 278.3 MB, free: 12.07 MB / 266.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.0008081/0.009877, allocations: 0.701 MB / 279 MB, free: 11.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.009924, allocations: 11.98 kB / 279 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.243e-05/0.01001, allocations: 44.7 kB / 279 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003653/0.01037, allocations: 287.5 kB / 279.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.0104, allocations: 12.38 kB / 279.3 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.01042, allocations: 8.375 kB / 279.3 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001893/0.01061, allocations: 98.05 kB / 279.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.01062, allocations: 192 / 279.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.01063, allocations: 384 / 279.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.01064, allocations: 11.94 kB / 279.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.825e-05/0.01072, allocations: 47.89 kB / 279.5 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005708/0.01129, allocations: 451.3 kB / 279.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001761/0.01146, allocations: 95.27 kB / 280 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.913e-05/0.01151, allocations: 31.67 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.01153, allocations: 4 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001548/0.01169, allocations: 112.9 kB / 280.2 MB, free: 10.03 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.763e-06/0.01169, allocations: 0 / 280.2 MB, free: 10.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003026/0.01199, allocations: 172.3 kB / 280.3 MB, free: 9.859 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.01203, allocations: 55.41 kB / 280.4 MB, free: 9.793 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003074/0.01234, allocations: 406.7 kB / 280.8 MB, free: 9.379 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.01236, allocations: 37.64 kB / 280.8 MB, free: 9.336 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.01248, allocations: 218.8 kB / 281 MB, free: 9.117 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.706e-05/0.01251, allocations: 43.67 kB / 281.1 MB, free: 9.074 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.153e-05/0.01257, allocations: 51.36 kB / 281.1 MB, free: 9.016 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002607/0.01283, allocations: 0.5196 MB / 281.6 MB, free: 8.484 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.676e-05/0.01287, allocations: 27.92 kB / 281.7 MB, free: 8.457 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.505e-05/0.01297, allocations: 127.5 kB / 281.8 MB, free: 8.301 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.786e-05/0.01307, allocations: 75.05 kB / 281.9 MB, free: 8.215 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.01307, allocations: 0 / 281.9 MB, free: 8.215 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000181/0.01325, allocations: 156.5 kB / 282 MB, free: 8.059 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.01327, allocations: 6.656 kB / 282 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.01327, allocations: 0 / 282 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.01329, allocations: 4.094 kB / 282 MB, free: 8.051 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.397e-05/0.01339, allocations: 27.98 kB / 282.1 MB, free: 8.023 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.01339, allocations: 4 kB / 282.1 MB, free: 8.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.26e-05/0.01345, allocations: 15.88 kB / 282.1 MB, free: 8.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.01346, allocations: 15.94 kB / 282.1 MB, free: 7.988 MB / 266.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 0.0001125/0.01357, allocations: 170.5 kB / 282.3 MB, free: 7.812 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.473e-05/0.01361, allocations: 39.81 kB / 282.3 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002284/0.01384, allocations: 156.5 kB / 282.5 MB, free: 7.613 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.01384, allocations: 0 / 282.5 MB, free: 7.613 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.01385, allocations: 11.98 kB / 282.5 MB, free: 7.602 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.01385, allocations: 0 / 282.5 MB, free: 7.602 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.01405, allocations: 240.4 kB / 282.7 MB, free: 7.332 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.01405, allocations: 0 / 282.7 MB, free: 7.332 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.523e-05/0.01408, allocations: 15.94 kB / 282.7 MB, free: 7.316 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/0.01409, allocations: 0 / 282.7 MB, free: 7.316 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.0141, allocations: 7.984 kB / 282.7 MB, free: 7.309 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.0141, allocations: 3.984 kB / 282.7 MB, free: 7.305 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.01411, allocations: 4 kB / 282.7 MB, free: 7.301 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001976/0.0143, allocations: 192.1 kB / 282.9 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.304e-05/0.01434, allocations: 35.75 kB / 283 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.948e-05/0.01437, allocations: 11.98 kB / 283 MB, free: 7.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.674e-05/0.0144, allocations: 7.938 kB / 283 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.095e-05/0.01446, allocations: 19.97 kB / 283 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.01448, allocations: 4 kB / 283 MB, free: 7.012 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001853/0.01466, allocations: 283 kB / 283.3 MB, free: 6.738 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01466, allocations: 0 / 283.3 MB, free: 6.738 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002047/0.01487, allocations: 55.92 kB / 283.3 MB, free: 6.684 MB / 266.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.0009739/0.01584, allocations: 393.9 kB / 283.7 MB, free: 6.41 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001909/0.01603, allocations: 95.42 kB / 283.8 MB, free: 6.312 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.01604, allocations: 0 / 283.8 MB, free: 6.312 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.64e-05/0.0161, allocations: 51.61 kB / 283.9 MB, free: 6.258 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.01639, allocations: 98.86 kB / 284 MB, free: 6.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006348/0.01703, allocations: 448.1 kB / 284.4 MB, free: 5.691 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.58e-05/0.01709, allocations: 96.3 kB / 284.5 MB, free: 5.578 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.346e-05/0.01717, allocations: 38.25 kB / 284.5 MB, free: 5.543 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.898e-05/0.01723, allocations: 40.48 kB / 284.6 MB, free: 5.504 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01723, allocations: 0 / 284.6 MB, free: 5.504 MB / 266.7 MB Notification: Performance of Templates: time 0.006888/0.02412, allocations: 4.054 MB / 288.6 MB, free: 1.488 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0302514410577714]