Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001822/0.001821, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002129/0.002129, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.451/1.451, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002842/0.002842, allocations: 69.52 kB / 307.9 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1239, allocations: 50.53 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004486/0.1284, allocations: 2.473 MB / 360.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002925/0.1314, allocations: 1.477 MB / 362.4 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002379/0.1316, allocations: 11.94 kB / 362.4 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007773/0.1325, allocations: 234.9 kB / 362.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005164/0.133, allocations: 199 kB / 362.8 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007016/0.1337, allocations: 263.3 kB / 363.1 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005703/0.1343, allocations: 487.7 kB / 363.5 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000382/0.1347, allocations: 209.8 kB / 363.7 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002567/0.1349, allocations: 195.2 kB / 363.9 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002592/0.1352, allocations: 219 kB / 364.2 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.058e-05/0.1353, allocations: 32 kB / 364.2 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002776/0.1356, allocations: 127.9 kB / 364.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.1357, allocations: 127.6 kB / 364.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002236/0.136, allocations: 230.6 kB / 364.7 MB, free: 7.668 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006858/0.1366, allocations: 0.5298 MB / 365.2 MB, free: 7.137 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1367, allocations: 0 / 365.2 MB, free: 7.137 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1367, allocations: 0 / 365.2 MB, free: 7.137 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.1367, allocations: 0 / 365.2 MB, free: 7.137 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.001475/0.1382, allocations: 0.8552 MB / 366 MB, free: 6.223 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.1382, allocations: 12.03 kB / 366.1 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002978/0.1385, allocations: 68.27 kB / 366.1 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005399/0.1391, allocations: 395 kB / 366.5 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.704e-05/0.1392, allocations: 55.27 kB / 366.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.022e-05/0.1392, allocations: 43.94 kB / 366.6 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007113/0.1399, allocations: 428.7 kB / 367 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.14, allocations: 4 kB / 367 MB, free: 5.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.477e-05/0.14, allocations: 12 kB / 367 MB, free: 5.137 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.13e-05/0.1401, allocations: 12.44 kB / 367.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005092/0.1406, allocations: 273.4 kB / 367.3 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.1426, allocations: 1.682 MB / 369 MB, free: 3.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006135/0.1433, allocations: 287.9 kB / 369.3 MB, free: 2.781 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000234/0.1435, allocations: 134.5 kB / 369.4 MB, free: 2.641 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.403e-05/0.1436, allocations: 12.06 kB / 369.4 MB, free: 2.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004953/0.1441, allocations: 332.1 kB / 369.7 MB, free: 2.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.575e-06/0.1441, allocations: 3.938 kB / 369.8 MB, free: 2.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009842/0.1451, allocations: 470.5 kB / 370.2 MB, free: 1.789 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.1452, allocations: 158.2 kB / 370.4 MB, free: 1.598 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000583/0.1458, allocations: 0.4933 MB / 370.9 MB, free: 1.098 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.682e-05/0.1459, allocations: 41.69 kB / 370.9 MB, free: 1.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001915/0.1461, allocations: 232.6 kB / 371.1 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.629e-05/0.1462, allocations: 90.98 kB / 371.2 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.1463, allocations: 110.2 kB / 371.3 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.1465, allocations: 362.7 kB / 371.7 MB, free: 260 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002472/0.1468, allocations: 121 kB / 371.8 MB, free: 140 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.168/0.3148, allocations: 264.8 kB / 372.1 MB, free: 19.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006404/0.3154, allocations: 399 kB / 372.4 MB, free: 19.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.3154, allocations: 1.531 kB / 372.4 MB, free: 19.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008591/0.3163, allocations: 469.6 kB / 372.9 MB, free: 19.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.366e-05/0.3164, allocations: 38.31 kB / 372.9 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.3164, allocations: 6.656 kB / 372.9 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.861e-05/0.3164, allocations: 6.922 kB / 373 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.3166, allocations: 43.69 kB / 373 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.767e-05/0.3166, allocations: 10.83 kB / 373 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000283/0.3169, allocations: 57.34 kB / 373.1 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.902e-05/0.3169, allocations: 19.34 kB / 373.1 MB, free: 19.49 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,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002818/0.3172, allocations: 248.4 kB / 373.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.08e-05/0.3173, allocations: 47.62 kB / 373.4 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004507/0.3178, allocations: 237.2 kB / 373.6 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.3178, allocations: 5.859 kB / 373.6 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.3178, allocations: 1.969 kB / 373.6 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.3178, allocations: 1.734 kB / 373.6 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009629/0.3188, allocations: 0.753 MB / 374.4 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3188, allocations: 0.5938 kB / 374.4 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.763e-05/0.3189, allocations: 19.25 kB / 374.4 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.3189, allocations: 2.906 kB / 374.4 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.3189, allocations: 9.609 kB / 374.4 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.3189, allocations: 6.734 kB / 374.4 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3189, allocations: 1.125 kB / 374.4 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006405/0.3196, allocations: 485 kB / 374.9 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.668e-05/0.3196, allocations: 124.6 kB / 375 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.621e-05/0.3197, allocations: 14.67 kB / 375 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.3199, allocations: 25.67 kB / 375 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.3201, allocations: 52.36 kB / 375.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-05/0.3201, allocations: 17.86 kB / 375.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003673/0.3205, allocations: 326.5 kB / 375.4 MB, free: 18.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3205, allocations: 0 / 375.4 MB, free: 18.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000508/0.321, allocations: 115 kB / 375.5 MB, free: 18.54 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001479/0.3225, allocations: 459.1 kB / 376 MB, free: 18.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006958/0.3232, allocations: 415.1 kB / 376.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3232, allocations: 3.938 kB / 376.4 MB, free: 18.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003046/0.3235, allocations: 240.8 kB / 376.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000554/0.3241, allocations: 83.95 kB / 376.7 MB, free: 18.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.3254, allocations: 0.8277 MB / 377.5 MB, free: 17.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.3257, allocations: 0.8402 MB / 378.4 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.3258, allocations: 43.97 kB / 378.4 MB, free: 16.84 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3258, allocations: 0 / 378.4 MB, free: 16.84 MB / 302.1 MB Notification: Performance of Templates: time 0.01004/0.3359, allocations: 6.112 MB / 384.5 MB, free: 15.65 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches