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.001364/0.001364, allocations: 196.6 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 226.5 MB / 244.7 MB, free: 6.441 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007739/0.0007741, allocations: 102.4 kB / 296.8 MB, free: 6.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002183/0.0002183, allocations: 8 kB / 356.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.1892, allocations: 51.3 MB / 408 MB, free: 27.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.001976/0.1912, allocations: 2.078 MB / 410.1 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.1928, allocations: 1.373 MB / 411.5 MB, free: 24.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.1929, allocations: 8.5 kB / 411.5 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005095/0.1935, allocations: 209.7 kB / 411.7 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002977/0.1938, allocations: 165.9 kB / 411.9 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.1942, allocations: 234.9 kB / 412.1 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002939/0.1945, allocations: 435.7 kB / 412.5 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.1948, allocations: 201.8 kB / 412.7 MB, free: 22.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001223/0.1949, allocations: 151.3 kB / 412.9 MB, free: 22.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.1951, allocations: 163.2 kB / 413 MB, free: 22.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.315e-05/0.1951, allocations: 8 kB / 413 MB, free: 22.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001467/0.1952, allocations: 91.89 kB / 413.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.971e-05/0.1953, allocations: 91.66 kB / 413.2 MB, free: 22.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.1955, allocations: 204.6 kB / 413.4 MB, free: 22.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002684/0.1958, allocations: 388 kB / 413.8 MB, free: 21.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1958, allocations: 0 / 413.8 MB, free: 21.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1958, allocations: 0 / 413.8 MB, free: 21.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1958, allocations: 0 / 413.8 MB, free: 21.88 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.0008872/0.1967, allocations: 0.7737 MB / 414.6 MB, free: 21.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.761e-05/0.1967, allocations: 8.031 kB / 414.6 MB, free: 21.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.333e-05/0.1968, allocations: 56.28 kB / 414.6 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003661/0.1972, allocations: 394.9 kB / 415 MB, free: 20.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.431e-05/0.1972, allocations: 59.27 kB / 415.1 MB, free: 20.49 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.894e-05/0.1973, allocations: 39.94 kB / 415.1 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005035/0.1978, allocations: 428.7 kB / 415.5 MB, free: 20 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.1978, allocations: 3.938 kB / 415.5 MB, free: 19.99 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.062e-05/0.1978, allocations: 20 kB / 415.5 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/0.1979, allocations: 16.44 kB / 415.6 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003883/0.1983, allocations: 261.5 kB / 415.8 MB, free: 19.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001353/0.1996, allocations: 1.701 MB / 417.5 MB, free: 17.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004522/0.2001, allocations: 288 kB / 417.8 MB, free: 17.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000188/0.2003, allocations: 138.5 kB / 417.9 MB, free: 17.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.895e-05/0.2004, allocations: 8 kB / 417.9 MB, free: 17.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000335/0.2007, allocations: 327.9 kB / 418.3 MB, free: 17.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.853e-06/0.2007, allocations: 4 kB / 418.3 MB, free: 17.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=37): time 0.0007684/0.2015, allocations: 484.3 kB / 418.7 MB, free: 16.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.2015, allocations: 170.1 kB / 418.9 MB, free: 16.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003768/0.2019, allocations: 0.4933 MB / 419.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.202, allocations: 37.7 kB / 419.4 MB, free: 15.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.2021, allocations: 236.5 kB / 419.7 MB, free: 15.63 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.121e-05/0.2021, allocations: 83 kB / 419.8 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.898e-05/0.2021, allocations: 11.94 kB / 419.8 MB, free: 15.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.991e-05/0.2022, allocations: 362.7 kB / 420.1 MB, free: 15.17 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.2024, allocations: 117.1 kB / 420.2 MB, free: 15.06 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000238/0.2027, allocations: 262.7 kB / 420.5 MB, free: 14.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003979/0.2031, allocations: 418.8 kB / 420.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.2031, allocations: 0 / 420.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006123/0.2037, allocations: 479.8 kB / 421.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.2037, allocations: 33.7 kB / 421.4 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.2037, allocations: 4 kB / 421.4 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2038, allocations: 4.469 kB / 421.4 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.2039, allocations: 51.84 kB / 421.5 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.2039, allocations: 11.94 kB / 421.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002076/0.2041, allocations: 59.56 kB / 421.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.429e-05/0.2042, allocations: 24 kB / 421.6 MB, free: 13.59 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.0001842/0.2044, allocations: 256.5 kB / 421.8 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.806e-05/0.2044, allocations: 47.42 kB / 421.8 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003984/0.2048, allocations: 262.4 kB / 422.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.2048, allocations: 8 kB / 422.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2048, allocations: 0 / 422.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.2049, allocations: 0 / 422.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007799/0.2056, allocations: 0.7876 MB / 422.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2057, allocations: 0 / 422.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.332e-05/0.2057, allocations: 19.92 kB / 422.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.2057, allocations: 4 kB / 422.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/0.2058, allocations: 15.92 kB / 422.9 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.2058, allocations: 8 kB / 422.9 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2058, allocations: 3.938 kB / 423 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005517/0.2063, allocations: 0.5074 MB / 423.5 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.884e-05/0.2064, allocations: 124.5 kB / 423.6 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.714e-05/0.2065, allocations: 19.94 kB / 423.6 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/0.2067, allocations: 31.97 kB / 423.6 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.379e-05/0.2068, allocations: 35.94 kB / 423.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-05/0.2068, allocations: 20 kB / 423.7 MB, free: 11.33 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002598/0.2071, allocations: 327.1 kB / 424 MB, free: 11.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2071, allocations: 0 / 424 MB, free: 11.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003997/0.2075, allocations: 120 kB / 424.1 MB, free: 10.9 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.0008039/0.2083, allocations: 458.5 kB / 424.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005234/0.2088, allocations: 403.6 kB / 425 MB, free: 10.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.2088, allocations: 0 / 425 MB, free: 10.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002714/0.2091, allocations: 243.2 kB / 425.2 MB, free: 9.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004903/0.2096, allocations: 77.48 kB / 425.3 MB, free: 9.852 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.2106, allocations: 0.9265 MB / 426.2 MB, free: 8.891 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000198/0.2109, allocations: 0.8403 MB / 427 MB, free: 8.023 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.211, allocations: 47.42 kB / 427.1 MB, free: 7.977 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.211, allocations: 0 / 427.1 MB, free: 7.977 MB / 298.7 MB Notification: Performance of Templates: time 0.006462/0.2174, allocations: 6.313 MB / 433.4 MB, free: 1.676 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