Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_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_3.2.3_cpp_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.002688/0.002694, allocations: 186.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.346/3.346, allocations: 205.4 MB / 222.5 MB, free: 13.77 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.001714/0.001714, allocations: 98.86 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000595/0.0005953, allocations: 12 kB / 327 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.16, allocations: 47.58 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.006358/0.1664, allocations: 2.016 MB / 376.5 MB, free: 13.4 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00494/0.1714, allocations: 1.167 MB / 377.7 MB, free: 12.23 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004822/0.172, allocations: 7.938 kB / 377.7 MB, free: 12.22 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001339/0.1733, allocations: 195.4 kB / 377.9 MB, free: 12.03 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001056/0.1744, allocations: 139.5 kB / 378 MB, free: 11.89 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001751/0.1762, allocations: 223.5 kB / 378.3 MB, free: 11.67 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001192/0.1774, allocations: 288.4 kB / 378.5 MB, free: 11.39 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007023/0.1782, allocations: 150.6 kB / 378.7 MB, free: 11.23 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005542/0.1788, allocations: 151.3 kB / 378.8 MB, free: 11.08 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000459/0.1793, allocations: 155.2 kB / 379 MB, free: 10.93 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.1794, allocations: 11.94 kB / 379 MB, free: 10.92 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004961/0.18, allocations: 75.88 kB / 379.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002667/0.1803, allocations: 95.66 kB / 379.2 MB, free: 10.75 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000238/0.1805, allocations: 93.45 kB / 379.3 MB, free: 10.65 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.1817, allocations: 375.3 kB / 379.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1817, allocations: 0 / 379.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.359e-06/0.1818, allocations: 3.938 kB / 379.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.722e-05/0.1818, allocations: 0 / 379.6 MB, free: 10.28 MB / 282.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.00286/0.1847, allocations: 0.7811 MB / 380.4 MB, free: 9.434 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.57e-05/0.1848, allocations: 8.031 kB / 380.4 MB, free: 9.426 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002965/0.1851, allocations: 55.34 kB / 380.5 MB, free: 9.371 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001358/0.1865, allocations: 382 kB / 380.9 MB, free: 8.957 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001554/0.1867, allocations: 54.7 kB / 380.9 MB, free: 8.898 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/0.1869, allocations: 40 kB / 380.9 MB, free: 8.859 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001735/0.1886, allocations: 424.6 kB / 381.4 MB, free: 8.406 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.048e-05/0.1887, allocations: 3.938 kB / 381.4 MB, free: 8.402 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.123e-05/0.1888, allocations: 20 kB / 381.4 MB, free: 8.383 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.067e-05/0.1889, allocations: 12.44 kB / 381.4 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.1904, allocations: 261.5 kB / 381.6 MB, free: 8.117 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005159/0.1956, allocations: 1.698 MB / 383.3 MB, free: 6.332 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.1972, allocations: 296 kB / 383.6 MB, free: 6.016 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001182/0.1974, allocations: 8 kB / 383.6 MB, free: 6.008 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00121/0.1986, allocations: 344.5 kB / 384 MB, free: 5.633 MB / 282.7 MB Notification: Performance of pre-optimization done (n=37): time 6.562e-06/0.1987, allocations: 0 / 384 MB, free: 5.633 MB / 282.7 MB Notification: Performance of matching and sorting (n=37): time 0.002667/0.2013, allocations: 0.5571 MB / 384.5 MB, free: 5.047 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000186/0.2016, allocations: 166.2 kB / 384.7 MB, free: 4.848 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001455/0.2031, allocations: 493.2 kB / 385.2 MB, free: 4.359 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001506/0.2033, allocations: 41.7 kB / 385.2 MB, free: 4.312 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003707/0.2037, allocations: 275 kB / 385.5 MB, free: 4.043 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.2039, allocations: 78.98 kB / 385.6 MB, free: 3.965 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.013e-05/0.204, allocations: 12 kB / 385.6 MB, free: 3.953 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002203/0.2042, allocations: 330.8 kB / 385.9 MB, free: 3.621 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000705/0.205, allocations: 117.1 kB / 386 MB, free: 3.508 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009243/0.2059, allocations: 262.7 kB / 386.3 MB, free: 3.188 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007888/0.2068, allocations: 166.3 kB / 386.4 MB, free: 3.02 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/0.2068, allocations: 0 / 386.4 MB, free: 3.02 MB / 282.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002086/0.2089, allocations: 458.9 kB / 386.9 MB, free: 2.559 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.246e-05/0.2091, allocations: 37.69 kB / 386.9 MB, free: 2.516 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.082e-05/0.2091, allocations: 4 kB / 386.9 MB, free: 2.512 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.233e-05/0.2092, allocations: 8 kB / 386.9 MB, free: 2.504 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004058/0.2096, allocations: 39.86 kB / 387 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.3e-05/0.2096, allocations: 15.92 kB / 387 MB, free: 2.449 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007891/0.2105, allocations: 55.58 kB / 387 MB, free: 2.395 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.2106, allocations: 20 kB / 387.1 MB, free: 2.375 MB / 282.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.0007031/0.2114, allocations: 264.5 kB / 387.3 MB, free: 2.098 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000206/0.2116, allocations: 43.48 kB / 387.4 MB, free: 2.055 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/0.2129, allocations: 265.3 kB / 387.6 MB, free: 1.781 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.866e-05/0.213, allocations: 8 kB / 387.6 MB, free: 1.773 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.213, allocations: 0 / 387.6 MB, free: 1.773 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.821e-05/0.2131, allocations: 3.984 kB / 387.6 MB, free: 1.77 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00294/0.216, allocations: 0.7789 MB / 388.4 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.361e-05/0.2161, allocations: 0 / 388.4 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.2163, allocations: 19.94 kB / 388.4 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.715e-05/0.2163, allocations: 4 kB / 388.4 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.423e-05/0.2164, allocations: 11.98 kB / 388.4 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.207e-05/0.2165, allocations: 4 kB / 388.4 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.2165, allocations: 0 / 388.4 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001989/0.2185, allocations: 0.5367 MB / 389 MB, free: 328 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002622/0.2188, allocations: 116.6 kB / 389.1 MB, free: 192 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001864/0.219, allocations: 15.98 kB / 389.1 MB, free: 176 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006197/0.2197, allocations: 27.98 kB / 389.1 MB, free: 148 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002711/0.22, allocations: 47.89 kB / 389.2 MB, free: 100 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.997e-05/0.2201, allocations: 15.98 kB / 389.2 MB, free: 84 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.3621/0.5822, allocations: 318.1 kB / 389.5 MB, free: 20.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.036e-06/0.5823, allocations: 0 / 389.5 MB, free: 20.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001418/0.5837, allocations: 123.5 kB / 389.6 MB, free: 20.46 MB / 282.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.002202/0.586, allocations: 449.8 kB / 390.1 MB, free: 20.19 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002042/0.5881, allocations: 401 kB / 390.5 MB, free: 20.12 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/0.5882, allocations: 0 / 390.5 MB, free: 20.12 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.5892, allocations: 255.8 kB / 390.7 MB, free: 20.05 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.5906, allocations: 73.27 kB / 390.8 MB, free: 20.05 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003831/0.5944, allocations: 0.9096 MB / 391.7 MB, free: 19.59 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000662/0.5952, allocations: 0.8513 MB / 392.5 MB, free: 18.89 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003772/0.5956, allocations: 46.81 kB / 392.6 MB, free: 18.89 MB / 282.7 MB Notification: Performance of SimCode: time 1.753e-06/0.5956, allocations: 1.375 kB / 392.6 MB, free: 18.89 MB / 282.7 MB Notification: Performance of Templates: time 0.02859/0.6242, allocations: 6.215 MB / 398.8 MB, free: 17.87 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches