Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.161/1.161, allocations: 205.1 MB / 223.8 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008815/0.0008815, allocations: 95.98 kB / 271.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007997/0.0007998, allocations: 39.94 kB / 327.2 MB, free: 328 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.1784, allocations: 46.62 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003195/0.1816, allocations: 2.478 MB / 376.3 MB, free: 43.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.1832, allocations: 1.251 MB / 377.5 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.1834, allocations: 10 kB / 377.5 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005687/0.1839, allocations: 219.2 kB / 377.8 MB, free: 42.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002494/0.1842, allocations: 135.2 kB / 377.9 MB, free: 42.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.1847, allocations: 238.3 kB / 378.1 MB, free: 42.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003583/0.185, allocations: 462.8 kB / 378.6 MB, free: 42.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002548/0.1853, allocations: 208.5 kB / 378.8 MB, free: 42.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000149/0.1855, allocations: 175.4 kB / 379 MB, free: 42.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001683/0.1856, allocations: 196.5 kB / 379.1 MB, free: 41.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.927e-05/0.1857, allocations: 20.62 kB / 379.2 MB, free: 41.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001829/0.1859, allocations: 105.1 kB / 379.3 MB, free: 41.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.896e-05/0.186, allocations: 112.7 kB / 379.4 MB, free: 41.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.1861, allocations: 210 kB / 379.6 MB, free: 41.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003766/0.1865, allocations: 0.495 MB / 380.1 MB, free: 41.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1865, allocations: 5.5 kB / 380.1 MB, free: 41.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.92e-07/0.1865, allocations: 3.938 kB / 380.1 MB, free: 41.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.1865, allocations: 0 / 380.1 MB, free: 41.25 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001048/0.1876, allocations: 0.8471 MB / 380.9 MB, free: 40.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.046e-05/0.1876, allocations: 8.594 kB / 380.9 MB, free: 40.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.265e-05/0.1877, allocations: 60.89 kB / 381 MB, free: 40.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000376/0.1881, allocations: 388.8 kB / 381.4 MB, free: 40.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.414e-05/0.1882, allocations: 65.72 kB / 381.4 MB, free: 40.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.383e-05/0.1882, allocations: 41.56 kB / 381.5 MB, free: 40.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005124/0.1887, allocations: 426.4 kB / 381.9 MB, free: 39.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.1888, allocations: 1.062 kB / 381.9 MB, free: 39.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.876e-05/0.1888, allocations: 17.73 kB / 381.9 MB, free: 39.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.22e-05/0.1888, allocations: 16.06 kB / 381.9 MB, free: 39.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003988/0.1892, allocations: 259.9 kB / 382.2 MB, free: 39.63 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.1906, allocations: 1.685 MB / 383.9 MB, free: 38.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004863/0.1911, allocations: 293.4 kB / 384.2 MB, free: 37.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001927/0.1913, allocations: 134.6 kB / 384.3 MB, free: 37.87 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.729e-05/0.1914, allocations: 12.05 kB / 384.3 MB, free: 37.87 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000412/0.1918, allocations: 325.6 kB / 384.6 MB, free: 37.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 2.054e-06/0.1918, allocations: 0 / 384.6 MB, free: 37.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=37): time 0.0009459/0.1928, allocations: 490.9 kB / 385.1 MB, free: 37.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.65e-05/0.1928, allocations: 164.8 kB / 385.3 MB, free: 37.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004819/0.1933, allocations: 495.6 kB / 385.7 MB, free: 36.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.1934, allocations: 38.33 kB / 385.8 MB, free: 36.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.1935, allocations: 223.9 kB / 386 MB, free: 36.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.27e-05/0.1936, allocations: 89.61 kB / 386.1 MB, free: 36.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.1937, allocations: 117.4 kB / 386.2 MB, free: 36.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.695e-05/0.1938, allocations: 362.4 kB / 386.6 MB, free: 36.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002427/0.194, allocations: 120.3 kB / 386.7 MB, free: 36.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/0.1943, allocations: 269.2 kB / 386.9 MB, free: 35.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004896/0.1948, allocations: 428.4 kB / 387.4 MB, free: 35.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.1949, allocations: 4 kB / 387.4 MB, free: 35.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006981/0.1956, allocations: 478.5 kB / 387.8 MB, free: 34.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.1956, allocations: 41.69 kB / 387.9 MB, free: 34.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.1956, allocations: 4 kB / 387.9 MB, free: 34.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.1956, allocations: 4 kB / 387.9 MB, free: 34.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.1958, allocations: 39.86 kB / 387.9 MB, free: 34.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.1958, allocations: 11.98 kB / 387.9 MB, free: 34.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002487/0.1961, allocations: 56.02 kB / 388 MB, free: 34.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.902e-05/0.1961, allocations: 23.94 kB / 388 MB, free: 34.77 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.onDelay.u,$PRE.onDelay.t_next,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.0002008/0.1963, allocations: 252.5 kB / 388.3 MB, free: 34.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.425e-05/0.1964, allocations: 47.44 kB / 388.3 MB, free: 34.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004613/0.1969, allocations: 263.1 kB / 388.6 MB, free: 34.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.1969, allocations: 4 kB / 388.6 MB, free: 34.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.1969, allocations: 0 / 388.6 MB, free: 34.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.1969, allocations: 11.91 kB / 388.6 MB, free: 34.17 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009115/0.1978, allocations: 0.779 MB / 389.4 MB, free: 33.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.1978, allocations: 8 kB / 389.4 MB, free: 33.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.738e-05/0.1979, allocations: 11.98 kB / 389.4 MB, free: 33.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.1979, allocations: 0 / 389.4 MB, free: 33.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.1979, allocations: 23.92 kB / 389.4 MB, free: 33.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.198, allocations: 3.938 kB / 389.4 MB, free: 33.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.198, allocations: 7.938 kB / 389.4 MB, free: 33.28 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.199, allocations: 1.26 MB / 390.7 MB, free: 31.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.123e-05/0.1991, allocations: 120.6 kB / 390.8 MB, free: 31.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.485e-05/0.1992, allocations: 12 kB / 390.8 MB, free: 31.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002232/0.1994, allocations: 23.97 kB / 390.8 MB, free: 31.78 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.786e-05/0.1995, allocations: 35.95 kB / 390.9 MB, free: 31.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.852e-05/0.1995, allocations: 19.98 kB / 390.9 MB, free: 31.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002269/0.1998, allocations: 323.1 kB / 391.2 MB, free: 31.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1998, allocations: 0 / 391.2 MB, free: 31.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005352/0.2003, allocations: 127.7 kB / 391.3 MB, free: 31.29 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 (rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 12 (falling.not_u,rising.u,set1.y,changing.u,triggeredAdd.y,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * 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.0007983/0.2011, allocations: 460.5 kB / 391.8 MB, free: 30.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004858/0.2016, allocations: 399.4 kB / 392.2 MB, free: 30.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2016, allocations: 0 / 392.2 MB, free: 30.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002504/0.2019, allocations: 239.5 kB / 392.4 MB, free: 30.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004917/0.2024, allocations: 82.8 kB / 392.5 MB, free: 30.13 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.2035, allocations: 1.16 MB / 393.6 MB, free: 28.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002008/0.2037, allocations: 0.8475 MB / 394.5 MB, free: 28.05 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001659/0.2039, allocations: 91.78 kB / 394.6 MB, free: 27.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.752e-05/0.204, allocations: 39.44 kB / 394.6 MB, free: 27.93 MB / 298.7 MB Notification: Performance of SimCode: time 1.9e-07/0.204, allocations: 0 / 394.6 MB, free: 27.93 MB / 298.7 MB Notification: Performance of Templates: time 0.007449/0.2114, allocations: 5.31 MB / 399.9 MB, free: 22.62 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches