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.002118/0.002118, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.015/2.015, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 88.33 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.155e-05/2.167e-05, allocations: 4 kB / 314.8 MB, free: 9.164 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.326, allocations: 47.56 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1317/0.4578, allocations: 81.89 MB / 444.2 MB, free: 4.402 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/0.4581, allocations: 75.91 kB / 444.3 MB, free: 4.328 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04166/0.4998, allocations: 8.989 MB / 453.3 MB, free: 11.38 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4998, allocations: 0 / 453.3 MB, free: 11.38 MB / 347.1 MB Notification: Performance of Transformations before backend: time 5.544e-05/0.4999, allocations: 12 kB / 453.3 MB, free: 11.37 MB / 347.1 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.001705/0.5016, allocations: 0.7299 MB / 454 MB, free: 10.59 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.5017, allocations: 12.03 kB / 454 MB, free: 10.57 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000226/0.5019, allocations: 55.34 kB / 454.1 MB, free: 10.52 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.503, allocations: 380.5 kB / 454.5 MB, free: 10.11 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/0.5031, allocations: 46.47 kB / 454.5 MB, free: 10.05 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.094e-05/0.5032, allocations: 33.39 kB / 454.5 MB, free: 10.02 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000692/0.5039, allocations: 209.5 kB / 454.7 MB, free: 9.82 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008513/0.5048, allocations: 364.4 kB / 455.1 MB, free: 9.426 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.5048, allocations: 0 / 455.1 MB, free: 9.426 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.856e-05/0.5049, allocations: 7.984 kB / 455.1 MB, free: 9.418 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-05/0.505, allocations: 12.44 kB / 455.1 MB, free: 9.406 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003284/0.5082, allocations: 1.6 MB / 456.7 MB, free: 7.734 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007384/0.509, allocations: 275.9 kB / 457 MB, free: 7.438 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002734/0.5093, allocations: 102.6 kB / 457.1 MB, free: 7.328 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.649e-05/0.5094, allocations: 12.22 kB / 457.1 MB, free: 7.316 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005891/0.51, allocations: 310.4 kB / 457.4 MB, free: 6.973 MB / 347.1 MB Notification: Performance of pre-optimization done (n=37): time 3.226e-06/0.5101, allocations: 0 / 457.4 MB, free: 6.973 MB / 347.1 MB Notification: Performance of matching and sorting (n=37): time 0.001218/0.5113, allocations: 324.6 kB / 457.7 MB, free: 6.652 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.5114, allocations: 164.4 kB / 457.9 MB, free: 6.457 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008586/0.5123, allocations: 424.9 kB / 458.3 MB, free: 6.035 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 9.925e-05/0.5124, allocations: 33.7 kB / 458.3 MB, free: 5.996 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002522/0.5127, allocations: 275.1 kB / 458.6 MB, free: 5.727 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.5129, allocations: 78.97 kB / 458.7 MB, free: 5.648 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.534e-05/0.5129, allocations: 0 / 458.7 MB, free: 5.648 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.5131, allocations: 334.8 kB / 459 MB, free: 5.312 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003001/0.5134, allocations: 97.11 kB / 459.1 MB, free: 5.215 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004308/0.5138, allocations: 245.6 kB / 459.3 MB, free: 4.914 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000538/0.5144, allocations: 126.3 kB / 459.5 MB, free: 4.793 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/0.5144, allocations: 8 kB / 459.5 MB, free: 4.785 MB / 347.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001126/0.5155, allocations: 359.1 kB / 459.8 MB, free: 4.43 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.216e-05/0.5156, allocations: 33.7 kB / 459.8 MB, free: 4.391 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.5156, allocations: 8.469 kB / 459.9 MB, free: 4.383 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.125e-05/0.5157, allocations: 11.98 kB / 459.9 MB, free: 4.371 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002586/0.516, allocations: 43.92 kB / 459.9 MB, free: 4.328 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.488e-05/0.516, allocations: 7.938 kB / 459.9 MB, free: 4.32 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004711/0.5165, allocations: 43.7 kB / 460 MB, free: 4.277 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.207e-05/0.5166, allocations: 24 kB / 460 MB, free: 4.254 MB / 347.1 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,rSFlipFlop.S,rSFlipFlop.R,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 () * 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.0002732/0.5168, allocations: 175.8 kB / 460.2 MB, free: 4.07 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.517, allocations: 43.53 kB / 460.2 MB, free: 4.027 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001224/0.5182, allocations: 348.8 kB / 460.5 MB, free: 3.676 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/0.5183, allocations: 7.984 kB / 460.5 MB, free: 3.668 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.5183, allocations: 2.531 kB / 460.5 MB, free: 3.668 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.5183, allocations: 7.984 kB / 460.6 MB, free: 3.66 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001945/0.5203, allocations: 0.7265 MB / 461.3 MB, free: 2.891 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.5203, allocations: 4 kB / 461.3 MB, free: 2.887 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/0.5205, allocations: 19.92 kB / 461.3 MB, free: 2.867 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.628e-06/0.5205, allocations: 4 kB / 461.3 MB, free: 2.863 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.36e-05/0.5205, allocations: 4 kB / 461.3 MB, free: 2.859 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.266e-05/0.5206, allocations: 7.953 kB / 461.3 MB, free: 2.852 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.5206, allocations: 7.938 kB / 461.3 MB, free: 2.844 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.5218, allocations: 475 kB / 461.8 MB, free: 2.348 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001918/0.522, allocations: 132.6 kB / 461.9 MB, free: 2.199 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.674e-05/0.5221, allocations: 4 kB / 461.9 MB, free: 2.195 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003798/0.5225, allocations: 27.97 kB / 462 MB, free: 2.168 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.5227, allocations: 43.88 kB / 462 MB, free: 2.125 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.115e-05/0.5228, allocations: 20 kB / 462 MB, free: 2.105 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0005628/0.5234, allocations: 294.9 kB / 462.3 MB, free: 1.816 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5234, allocations: 0 / 462.3 MB, free: 1.816 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0008018/0.5242, allocations: 108.1 kB / 462.4 MB, free: 1.711 MB / 347.1 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,rSFlipFlop.S,rSFlipFlop.R,$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 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.pre.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * 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.001238/0.5254, allocations: 402.2 kB / 462.8 MB, free: 1.367 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0009968/0.5265, allocations: 359.7 kB / 463.2 MB, free: 1.004 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.5265, allocations: 0 / 463.2 MB, free: 1.004 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004983/0.527, allocations: 235 kB / 463.4 MB, free: 0.7617 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008719/0.5279, allocations: 79.28 kB / 463.5 MB, free: 0.6875 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001861/0.5298, allocations: 0.6195 MB / 464.1 MB, free: 32 kB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006268/0.5305, allocations: 0.8478 MB / 464.9 MB, free: 15.16 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002704/0.5308, allocations: 43.42 kB / 465 MB, free: 15.11 MB / 363.1 MB Notification: Performance of SimCode: time 9.71e-07/0.5308, allocations: 0 / 465 MB, free: 15.11 MB / 363.1 MB Notification: Performance of Templates: time 0.01681/0.5476, allocations: 6.288 MB / 471.3 MB, free: 8.832 MB / 363.1 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