Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001099/0.001099, allocations: 101 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00153/0.00153, allocations: 191.6 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.7 MB / 246.4 MB, free: 9.828 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002162/0.0002162, allocations: 4 kB / 307.1 MB, free: 0.9766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09977/0.1, allocations: 51.52 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002677/0.1027, allocations: 2.079 MB / 360.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002022/0.1048, allocations: 1.361 MB / 362.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.1049, allocations: 7.938 kB / 362.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006168/0.1056, allocations: 211.2 kB / 362.3 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000343/0.1059, allocations: 163.4 kB / 362.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004824/0.1064, allocations: 207.6 kB / 362.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004401/0.1069, allocations: 431.8 kB / 363.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003029/0.1072, allocations: 166.6 kB / 363.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001846/0.1074, allocations: 143.3 kB / 363.4 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000208/0.1076, allocations: 175.1 kB / 363.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.29e-05/0.1076, allocations: 8 kB / 363.5 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001745/0.1078, allocations: 75.91 kB / 363.6 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.1079, allocations: 95.59 kB / 363.7 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.441e-05/0.108, allocations: 97.45 kB / 363.8 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003927/0.1084, allocations: 383.4 kB / 364.2 MB, free: 7.848 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1084, allocations: 0 / 364.2 MB, free: 7.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1084, allocations: 0 / 364.2 MB, free: 7.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.1084, allocations: 4 kB / 364.2 MB, free: 7.844 MB / 302.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.001128/0.1096, allocations: 0.7695 MB / 364.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.1096, allocations: 12.03 kB / 365 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002253/0.1098, allocations: 67.33 kB / 365 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004724/0.1103, allocations: 374 kB / 365.4 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.742e-05/0.1104, allocations: 58.7 kB / 365.4 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.692e-05/0.1105, allocations: 36 kB / 365.5 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000642/0.1111, allocations: 432.7 kB / 365.9 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.1111, allocations: 4 kB / 365.9 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.136e-05/0.1112, allocations: 12 kB / 365.9 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.1112, allocations: 16.38 kB / 365.9 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004649/0.1117, allocations: 269.4 kB / 366.2 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001847/0.1135, allocations: 1.69 MB / 367.9 MB, free: 3.898 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005477/0.1141, allocations: 303.7 kB / 368.2 MB, free: 3.574 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.1143, allocations: 126.5 kB / 368.3 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.202e-05/0.1144, allocations: 8 kB / 368.3 MB, free: 3.434 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004409/0.1148, allocations: 328.2 kB / 368.6 MB, free: 3.074 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.813e-06/0.1148, allocations: 4 kB / 368.6 MB, free: 3.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0008582/0.1157, allocations: 472 kB / 369.1 MB, free: 2.602 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.675e-05/0.1158, allocations: 170.2 kB / 369.3 MB, free: 2.398 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005193/0.1163, allocations: 0.4894 MB / 369.8 MB, free: 1.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.272e-05/0.1164, allocations: 45.7 kB / 369.8 MB, free: 1.848 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/0.1166, allocations: 232.6 kB / 370 MB, free: 1.617 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.18e-05/0.1166, allocations: 78.98 kB / 370.1 MB, free: 1.539 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-05/0.1167, allocations: 12 kB / 370.1 MB, free: 1.527 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.1168, allocations: 362.7 kB / 370.5 MB, free: 1.164 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002245/0.117, allocations: 121 kB / 370.6 MB, free: 1.043 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003042/0.1174, allocations: 266.7 kB / 370.8 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.1176, allocations: 150.3 kB / 371 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1176, allocations: 0 / 371 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006999/0.1183, allocations: 462.2 kB / 371.4 MB, free: 112 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.838e-05/0.1184, allocations: 41.69 kB / 371.5 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.617e-06/0.1184, allocations: 4 kB / 371.5 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.1184, allocations: 8 kB / 371.5 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.1186, allocations: 47.81 kB / 371.5 MB, free: 4 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1723/0.2908, allocations: 7.344 kB / 371.6 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004742/0.2913, allocations: 51.83 kB / 371.6 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.475e-05/0.2914, allocations: 22.91 kB / 371.6 MB, free: 18.84 MB / 302.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,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.0004827/0.2919, allocations: 250 kB / 371.9 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.2921, allocations: 45.69 kB / 371.9 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005918/0.2927, allocations: 232.6 kB / 372.1 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.2927, allocations: 4.438 kB / 372.1 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.2927, allocations: 4.875 kB / 372.2 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.2927, allocations: 5.734 kB / 372.2 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/0.2939, allocations: 0.745 MB / 372.9 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.2939, allocations: 0.7031 kB / 372.9 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.862e-05/0.294, allocations: 13.45 kB / 372.9 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.714e-06/0.294, allocations: 5.594 kB / 372.9 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.78e-05/0.2941, allocations: 11.92 kB / 372.9 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.2941, allocations: 1.406 kB / 372.9 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.2941, allocations: 5.625 kB / 372.9 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007196/0.2948, allocations: 0.4889 MB / 373.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.183e-05/0.2949, allocations: 127.9 kB / 373.6 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.521e-05/0.295, allocations: 17.84 kB / 373.6 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002001/0.2952, allocations: 30.19 kB / 373.6 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.2953, allocations: 46.69 kB / 373.6 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.46e-05/0.2954, allocations: 15.95 kB / 373.7 MB, free: 18.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004009/0.2958, allocations: 324.9 kB / 374 MB, free: 18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2958, allocations: 0 / 374 MB, free: 18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005244/0.2963, allocations: 112.9 kB / 374.1 MB, free: 17.99 MB / 302.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: 35 (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,changing.y,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,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 (34): * Single equations (assignments): 28 * 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.0009776/0.2973, allocations: 454.1 kB / 374.5 MB, free: 17.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007508/0.2981, allocations: 389.3 kB / 374.9 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.2981, allocations: 4.906 kB / 374.9 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00037/0.2985, allocations: 237.8 kB / 375.1 MB, free: 17.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005567/0.299, allocations: 83.58 kB / 375.2 MB, free: 17.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001459/0.3005, allocations: 0.8779 MB / 376.1 MB, free: 17.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.3008, allocations: 0.8396 MB / 376.9 MB, free: 16.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002231/0.301, allocations: 85.14 kB / 377 MB, free: 16.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.416e-05/0.3011, allocations: 38.36 kB / 377.1 MB, free: 16.5 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3011, allocations: 0 / 377.1 MB, free: 16.5 MB / 302.1 MB Notification: Performance of Templates: time 0.01128/0.3124, allocations: 4.687 MB / 381.8 MB, free: 16.1 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches