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.001126/0.001126, allocations: 88.73 kB / 21.5 MB, free: 2.98 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.001209/0.001209, allocations: 166.8 kB / 24.92 MB, free: 8.77 MB / 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 0.9436/0.9436, allocations: 177 MB / 205.2 MB, free: 4.984 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 1.473e-06/1.473e-06, allocations: 0 / 273.4 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.647e-05/2.794e-05, allocations: 2.312 kB / 273.4 MB, free: 1.047 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.005781/0.005809, allocations: 2.048 MB / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002297/0.008106, allocations: 1.273 MB / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001275/0.008234, allocations: 4 kB / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006677/0.008902, allocations: 307 kB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005116/0.009413, allocations: 263 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004679/0.009881, allocations: 235.3 kB / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003983/0.01028, allocations: 363 kB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.264e-05/0.01037, allocations: 38.86 kB / 277.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002463/0.01062, allocations: 199.5 kB / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.0108, allocations: 135.7 kB / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.431e-05/0.01083, allocations: 19.94 kB / 278.2 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.01099, allocations: 95.8 kB / 278.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.0111, allocations: 91.67 kB / 278.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.603e-05/0.01119, allocations: 75.77 kB / 278.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000339/0.01153, allocations: 255 kB / 278.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.01153, allocations: 0 / 278.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.01153, allocations: 0 / 278.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.01153, allocations: 0 / 278.7 MB, free: 11.66 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.0006627/0.0122, allocations: 0.5722 MB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.909e-05/0.01222, allocations: 11.98 kB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.352e-05/0.01227, allocations: 32.91 kB / 279.3 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002315/0.0125, allocations: 260.7 kB / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.01251, allocations: 8.375 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.01253, allocations: 8.375 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001119/0.01264, allocations: 100.9 kB / 279.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.01264, allocations: 192 / 279.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.01265, allocations: 384 / 279.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.01266, allocations: 7.938 kB / 279.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.932e-05/0.0127, allocations: 27.92 kB / 279.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003135/0.01301, allocations: 265.6 kB / 280 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/0.01313, allocations: 129.2 kB / 280.1 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.806e-05/0.01316, allocations: 28.8 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.116e-05/0.01317, allocations: 3.984 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.472e-05/0.01325, allocations: 90.17 kB / 280.2 MB, free: 10.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 9.92e-07/0.01325, allocations: 0 / 280.2 MB, free: 10.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001458/0.0134, allocations: 116.5 kB / 280.4 MB, free: 9.898 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.01343, allocations: 55.41 kB / 280.4 MB, free: 9.832 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.01365, allocations: 337 kB / 280.7 MB, free: 9.488 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.01367, allocations: 33.7 kB / 280.8 MB, free: 9.449 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.05e-05/0.01373, allocations: 133 kB / 280.9 MB, free: 9.316 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.166e-05/0.01376, allocations: 39.67 kB / 280.9 MB, free: 9.277 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.056e-05/0.0138, allocations: 45.69 kB / 281 MB, free: 9.227 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.01391, allocations: 350.7 kB / 281.3 MB, free: 8.875 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.221e-05/0.01393, allocations: 14.83 kB / 281.3 MB, free: 8.859 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.683e-05/0.014, allocations: 103.7 kB / 281.4 MB, free: 8.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.037e-05/0.01407, allocations: 72.11 kB / 281.5 MB, free: 8.648 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.01408, allocations: 4.031 kB / 281.5 MB, free: 8.645 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001051/0.01418, allocations: 108.3 kB / 281.6 MB, free: 8.531 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.077e-06/0.01419, allocations: 4 kB / 281.6 MB, free: 8.527 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.01419, allocations: 4 kB / 281.6 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.576e-06/0.0142, allocations: 3.984 kB / 281.6 MB, free: 8.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.161e-05/0.01426, allocations: 23.92 kB / 281.7 MB, free: 8.496 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.805e-06/0.01427, allocations: 4 kB / 281.7 MB, free: 8.492 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.59e-05/0.01431, allocations: 15.94 kB / 281.7 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.01432, allocations: 4 kB / 281.7 MB, free: 8.473 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 8.176e-05/0.0144, allocations: 138.6 kB / 281.8 MB, free: 8.328 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.038e-05/0.01442, allocations: 23.97 kB / 281.8 MB, free: 8.305 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001244/0.01455, allocations: 112.5 kB / 282 MB, free: 8.188 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.01455, allocations: 0 / 282 MB, free: 8.188 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-06/0.01455, allocations: 0 / 282 MB, free: 8.188 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.01455, allocations: 3.984 kB / 282 MB, free: 8.184 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.01468, allocations: 149.7 kB / 282.1 MB, free: 8.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.01468, allocations: 0 / 282.1 MB, free: 8.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.456e-05/0.0147, allocations: 8 kB / 282.1 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.0147, allocations: 4 kB / 282.1 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.01471, allocations: 15.98 kB / 282.1 MB, free: 7.992 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.01e-07/0.01471, allocations: 0 / 282.1 MB, free: 7.992 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.01471, allocations: 3.938 kB / 282.1 MB, free: 7.988 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000103/0.01482, allocations: 141.6 kB / 282.3 MB, free: 7.832 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.687e-05/0.01484, allocations: 31.73 kB / 282.3 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.01486, allocations: 8 kB / 282.3 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.275e-05/0.0149, allocations: 4 kB / 282.3 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.587e-05/0.01493, allocations: 15.97 kB / 282.3 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.766e-06/0.01494, allocations: 4 kB / 282.3 MB, free: 7.77 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001075/0.01505, allocations: 155.5 kB / 282.5 MB, free: 7.613 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01505, allocations: 0 / 282.5 MB, free: 7.613 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001377/0.01519, allocations: 51.94 kB / 282.5 MB, free: 7.562 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.001028/0.01621, allocations: 0.4942 MB / 283 MB, free: 7.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.01632, allocations: 76.75 kB / 283.1 MB, free: 7.172 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.01632, allocations: 0 / 283.1 MB, free: 7.172 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.203e-05/0.01637, allocations: 48.81 kB / 283.2 MB, free: 7.121 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001792/0.01655, allocations: 102 kB / 283.3 MB, free: 7.027 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006181/0.01717, allocations: 458.5 kB / 283.7 MB, free: 6.555 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.58e-05/0.01723, allocations: 96.3 kB / 283.8 MB, free: 6.441 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.279e-05/0.01729, allocations: 38.27 kB / 283.8 MB, free: 6.406 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.0174, allocations: 95.34 kB / 283.9 MB, free: 6.312 MB / 266.7 MB Notification: Performance of SimCode: time 4.21e-07/0.0174, allocations: 0 / 283.9 MB, free: 6.312 MB / 266.7 MB Notification: Performance of Templates: time 0.005702/0.0231, allocations: 4.423 MB / 288.4 MB, free: 1.945 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: 2.6914937077090144]