Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001585/0.001585, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 226.5 MB / 244.3 MB, free: 6.582 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007759/0.0007759, allocations: 107.9 kB / 296.4 MB, free: 6.789 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002796/0.0002797, allocations: 4 kB / 356.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.1856, allocations: 51.3 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.001959/0.1876, allocations: 2.068 MB / 409.6 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.1891, allocations: 1.379 MB / 410.9 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001242/0.1892, allocations: 7.938 kB / 410.9 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004973/0.1897, allocations: 210.2 kB / 411.1 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002794/0.19, allocations: 169.1 kB / 411.3 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004371/0.1905, allocations: 238.4 kB / 411.5 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002836/0.1908, allocations: 435.8 kB / 412 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002133/0.191, allocations: 154.2 kB / 412.1 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.1911, allocations: 147.3 kB / 412.3 MB, free: 23.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.1913, allocations: 167.2 kB / 412.4 MB, free: 22.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.178e-05/0.1913, allocations: 8 kB / 412.4 MB, free: 22.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001459/0.1914, allocations: 87.89 kB / 412.5 MB, free: 22.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.073e-05/0.1915, allocations: 91.66 kB / 412.6 MB, free: 22.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.078e-05/0.1916, allocations: 101.4 kB / 412.7 MB, free: 22.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002646/0.1919, allocations: 385.3 kB / 413.1 MB, free: 22.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1919, allocations: 0 / 413.1 MB, free: 22.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1919, allocations: 0 / 413.1 MB, free: 22.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1919, allocations: 0 / 413.1 MB, free: 22.19 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.0008885/0.1928, allocations: 0.7814 MB / 413.9 MB, free: 21.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.662e-05/0.1928, allocations: 8.031 kB / 413.9 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.638e-05/0.1929, allocations: 63.34 kB / 413.9 MB, free: 21.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003492/0.1933, allocations: 381.9 kB / 414.3 MB, free: 20.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.064e-05/0.1933, allocations: 62.69 kB / 414.4 MB, free: 20.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.723e-05/0.1934, allocations: 39.95 kB / 414.4 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004903/0.1939, allocations: 424.7 kB / 414.8 MB, free: 20.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.1939, allocations: 0 / 414.8 MB, free: 20.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.919e-05/0.1939, allocations: 23.98 kB / 414.8 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.1939, allocations: 12.44 kB / 414.9 MB, free: 20.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003681/0.1943, allocations: 257.5 kB / 415.1 MB, free: 20.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.1956, allocations: 1.697 MB / 416.8 MB, free: 18.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004284/0.196, allocations: 296.6 kB / 417.1 MB, free: 17.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.1962, allocations: 126.5 kB / 417.2 MB, free: 17.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.451e-05/0.1963, allocations: 11.98 kB / 417.2 MB, free: 17.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003275/0.1966, allocations: 332.5 kB / 417.6 MB, free: 17.4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.834e-06/0.1966, allocations: 0 / 417.6 MB, free: 17.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=37): time 0.0007187/0.1974, allocations: 498.1 kB / 418 MB, free: 16.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.1974, allocations: 166.2 kB / 418.2 MB, free: 16.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003585/0.1978, allocations: 0.4895 MB / 418.7 MB, free: 16.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.1978, allocations: 41.69 kB / 418.7 MB, free: 16.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.727e-05/0.1979, allocations: 228.6 kB / 419 MB, free: 15.94 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.926e-05/0.198, allocations: 90.83 kB / 419.1 MB, free: 15.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.593e-05/0.198, allocations: 8 kB / 419.1 MB, free: 15.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.75e-05/0.1981, allocations: 362.7 kB / 419.4 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.1983, allocations: 121.1 kB / 419.5 MB, free: 15.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.1985, allocations: 266.7 kB / 419.8 MB, free: 15.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002077/0.1987, allocations: 161.6 kB / 419.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1987, allocations: 4 kB / 420 MB, free: 14.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000566/0.1993, allocations: 471 kB / 420.4 MB, free: 14.4 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.1993, allocations: 41.69 kB / 420.5 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1993, allocations: 4.312 kB / 420.5 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.1994, allocations: 11.95 kB / 420.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.1995, allocations: 39.92 kB / 420.5 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.1995, allocations: 11.92 kB / 420.5 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002087/0.1997, allocations: 60.08 kB / 420.6 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.27e-05/0.1998, allocations: 20.16 kB / 420.6 MB, free: 14.21 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,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,$whenCondition1,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,$PRE.rising.u,rising.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.falling.not_u,falling.not_u,$PRE.changing.u,changing.u,changing.y,set1.expr[1],set1.expr[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001765/0.1999, allocations: 248.6 kB / 420.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.794e-05/0.2, allocations: 55.44 kB / 420.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003779/0.2004, allocations: 262.8 kB / 421.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.2004, allocations: 7.953 kB / 421.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2004, allocations: 0 / 421.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.2004, allocations: 7.984 kB / 421.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007531/0.2012, allocations: 0.7868 MB / 422 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.2012, allocations: 4 kB / 422 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.299e-05/0.2012, allocations: 15.92 kB / 422 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.2013, allocations: 8 kB / 422 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.123e-05/0.2013, allocations: 8 kB / 422 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.2013, allocations: 7.984 kB / 422 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2013, allocations: 3.938 kB / 422 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005016/0.2018, allocations: 0.5056 MB / 422.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.544e-05/0.2019, allocations: 128.4 kB / 422.6 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.312e-05/0.2019, allocations: 12 kB / 422.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.2021, allocations: 31.98 kB / 422.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.155e-05/0.2022, allocations: 39.94 kB / 422.7 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-05/0.2023, allocations: 15.98 kB / 422.7 MB, free: 11.96 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002399/0.2025, allocations: 331.1 kB / 423.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2025, allocations: 0 / 423.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000354/0.2029, allocations: 123.9 kB / 423.2 MB, free: 11.51 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007453/0.2036, allocations: 466.6 kB / 423.6 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000495/0.2041, allocations: 391.8 kB / 424 MB, free: 10.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.2041, allocations: 0.9375 kB / 424 MB, free: 10.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.2044, allocations: 243.2 kB / 424.3 MB, free: 10.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.2049, allocations: 78.17 kB / 424.3 MB, free: 10.47 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.2059, allocations: 0.9339 MB / 425.3 MB, free: 9.504 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002023/0.2061, allocations: 0.8364 MB / 426.1 MB, free: 8.637 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.459e-05/0.2062, allocations: 43.42 kB / 426.1 MB, free: 8.598 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2062, allocations: 0 / 426.1 MB, free: 8.598 MB / 298.7 MB Notification: Performance of Templates: time 0.006339/0.2125, allocations: 6.329 MB / 432.5 MB, free: 2.285 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches