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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002263/0.002262, allocations: 178.7 kB / 8.151 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.664/1.664, allocations: 205.2 MB / 213.7 MB, free: 13.93 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.002115/0.002115, allocations: 84.92 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.018e-05/1.028e-05, allocations: 0 / 314.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2572, allocations: 47.56 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1448/0.4021, allocations: 81.82 MB / 443.6 MB, free: 4.219 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003552/0.4025, allocations: 72.47 kB / 443.7 MB, free: 4.148 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.0558/0.4584, allocations: 8.637 MB / 452.4 MB, free: 11.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.846e-05/0.4585, allocations: 12 kB / 452.4 MB, free: 11.54 MB / 346.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.002118/0.4606, allocations: 0.7387 MB / 453.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.4607, allocations: 8.031 kB / 453.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002648/0.461, allocations: 55.34 kB / 453.2 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001425/0.4624, allocations: 384.4 kB / 453.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.4626, allocations: 46.47 kB / 453.6 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.4627, allocations: 24 kB / 453.6 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009986/0.4637, allocations: 213.5 kB / 453.8 MB, free: 9.988 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.465, allocations: 368.3 kB / 454.2 MB, free: 9.586 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/0.465, allocations: 4 kB / 454.2 MB, free: 9.582 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.158e-05/0.4651, allocations: 8 kB / 454.2 MB, free: 9.574 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.976e-05/0.4652, allocations: 12.44 kB / 454.2 MB, free: 9.562 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004285/0.4695, allocations: 1.604 MB / 455.8 MB, free: 7.887 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009472/0.4705, allocations: 264.2 kB / 456.1 MB, free: 7.602 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000417/0.4709, allocations: 110.6 kB / 456.2 MB, free: 7.484 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001108/0.4711, allocations: 4.312 kB / 456.2 MB, free: 7.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000668/0.4718, allocations: 300.2 kB / 456.5 MB, free: 7.145 MB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 4.478e-06/0.4718, allocations: 4 kB / 456.5 MB, free: 7.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=37): time 0.001598/0.4734, allocations: 291.9 kB / 456.8 MB, free: 6.852 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/0.4736, allocations: 166.4 kB / 456.9 MB, free: 6.652 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.4748, allocations: 420.5 kB / 457.3 MB, free: 6.234 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.475, allocations: 33.7 kB / 457.4 MB, free: 6.195 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/0.4752, allocations: 223.1 kB / 457.6 MB, free: 5.973 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001635/0.4754, allocations: 67.12 kB / 457.6 MB, free: 5.906 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.07e-05/0.4754, allocations: 0 / 457.6 MB, free: 5.906 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.4756, allocations: 346.8 kB / 458 MB, free: 5.559 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004464/0.4761, allocations: 92.98 kB / 458.1 MB, free: 5.465 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006285/0.4768, allocations: 255.3 kB / 458.3 MB, free: 5.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008115/0.4776, allocations: 123.9 kB / 458.4 MB, free: 5.039 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.878e-06/0.4776, allocations: 0 / 458.4 MB, free: 5.039 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001676/0.4793, allocations: 365.4 kB / 458.8 MB, free: 4.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/0.4794, allocations: 8 kB / 458.8 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/0.4794, allocations: 4 kB / 458.8 MB, free: 4.668 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.245e-05/0.4795, allocations: 4 kB / 458.8 MB, free: 4.664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003944/0.4799, allocations: 43.86 kB / 458.9 MB, free: 4.621 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.617e-05/0.4799, allocations: 15.92 kB / 458.9 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005764/0.4805, allocations: 36.17 kB / 458.9 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.4806, allocations: 23.94 kB / 458.9 MB, free: 4.547 MB / 346.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,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.0003609/0.481, allocations: 104.6 kB / 459 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002617/0.4813, allocations: 43.44 kB / 459.1 MB, free: 4.391 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001821/0.4832, allocations: 321.2 kB / 459.4 MB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.137e-05/0.4832, allocations: 8 kB / 459.4 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.4833, allocations: 0 / 459.4 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.4833, allocations: 3.984 kB / 459.4 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002937/0.4862, allocations: 0.7379 MB / 460.1 MB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/0.4863, allocations: 0 / 460.1 MB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000201/0.4865, allocations: 19.94 kB / 460.2 MB, free: 3.262 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.126e-05/0.4866, allocations: 11.89 kB / 460.2 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.467e-05/0.4867, allocations: 4 kB / 460.2 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.778e-06/0.4867, allocations: 5.219 kB / 460.2 MB, free: 3.242 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.4867, allocations: 0 / 460.2 MB, free: 3.242 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001718/0.4884, allocations: 458 kB / 460.6 MB, free: 2.762 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002928/0.4888, allocations: 128.5 kB / 460.8 MB, free: 2.617 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000195/0.489, allocations: 8 kB / 460.8 MB, free: 2.609 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000685/0.4897, allocations: 31.97 kB / 460.8 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004313/0.4902, allocations: 31.95 kB / 460.8 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/0.4904, allocations: 15.98 kB / 460.8 MB, free: 2.531 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0009865/0.4914, allocations: 299.2 kB / 461.1 MB, free: 2.238 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001179/0.4926, allocations: 104.1 kB / 461.2 MB, free: 2.137 MB / 346.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,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.001629/0.4942, allocations: 364.3 kB / 461.6 MB, free: 1.816 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.4958, allocations: 326.3 kB / 461.9 MB, free: 1.492 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.4958, allocations: 4.062 kB / 461.9 MB, free: 1.488 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008036/0.4966, allocations: 207 kB / 462.1 MB, free: 1.281 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.498, allocations: 65.39 kB / 462.2 MB, free: 1.223 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002883/0.5009, allocations: 0.6304 MB / 462.8 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001089/0.502, allocations: 0.8941 MB / 463.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of SimCode: time 1.603e-06/0.5021, allocations: 0 / 463.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of Templates: time 0.01768/0.5198, allocations: 6.281 MB / 470 MB, free: 9.355 MB / 362.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