Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 96.05 kB / 16.93 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001954/0.001954, allocations: 182.8 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.683/1.683, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004504/0.0004504, allocations: 8 kB / 280.7 MB, free: 3.77 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09643/0.09689, allocations: 47.59 MB / 328.3 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002877/0.09981, allocations: 2.025 MB / 330.3 MB, free: 2.07 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.1018, allocations: 1.155 MB / 331.5 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001527/0.1019, allocations: 11.94 kB / 331.5 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005653/0.1025, allocations: 191.4 kB / 331.7 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002777/0.1028, allocations: 135.6 kB / 331.8 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005487/0.1034, allocations: 223.4 kB / 332 MB, free: 364 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003518/0.1037, allocations: 292.4 kB / 332.3 MB, free: 72 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002773/0.104, allocations: 154.6 kB / 332.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.1042, allocations: 143.3 kB / 332.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/0.1044, allocations: 163.2 kB / 332.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.34e-05/0.1044, allocations: 12 kB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001627/0.1046, allocations: 75.83 kB / 332.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.964e-05/0.1047, allocations: 91.61 kB / 333 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001343/0.1048, allocations: 97.44 kB / 333.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003526/0.1052, allocations: 379.4 kB / 333.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.033e-06/0.1052, allocations: 0 / 333.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1052, allocations: 0 / 333.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1052, allocations: 0 / 333.4 MB, free: 14.96 MB / 286.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.001091/0.1063, allocations: 0.7771 MB / 334.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.1064, allocations: 12.03 kB / 334.2 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.706e-05/0.1065, allocations: 55.34 kB / 334.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005104/0.107, allocations: 370 kB / 334.6 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.157e-05/0.1071, allocations: 62.69 kB / 334.7 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.725e-05/0.1071, allocations: 40 kB / 334.7 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006195/0.1078, allocations: 428.6 kB / 335.1 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.1078, allocations: 7.938 kB / 335.2 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.625e-05/0.1078, allocations: 19.98 kB / 335.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.817e-05/0.1079, allocations: 12.44 kB / 335.2 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004472/0.1083, allocations: 261.5 kB / 335.4 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001925/0.1102, allocations: 1.686 MB / 337.1 MB, free: 11.02 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005332/0.1108, allocations: 303.9 kB / 337.4 MB, free: 10.69 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.554e-05/0.1109, allocations: 8 kB / 337.4 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004293/0.1113, allocations: 340.2 kB / 337.8 MB, free: 10.31 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 1.864e-06/0.1113, allocations: 0 / 337.8 MB, free: 10.31 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009149/0.1122, allocations: 0.5533 MB / 338.3 MB, free: 9.73 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.618e-05/0.1123, allocations: 170.2 kB / 338.5 MB, free: 9.527 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004721/0.1128, allocations: 485.2 kB / 339 MB, free: 9.047 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.221e-05/0.1129, allocations: 45.69 kB / 339 MB, free: 8.996 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.113, allocations: 224.6 kB / 339.2 MB, free: 8.773 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.205e-05/0.1131, allocations: 90.97 kB / 339.3 MB, free: 8.684 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.14e-05/0.1132, allocations: 12 kB / 339.3 MB, free: 8.672 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1133, allocations: 354.8 kB / 339.7 MB, free: 8.316 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000223/0.1135, allocations: 117 kB / 339.8 MB, free: 8.203 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003033/0.1138, allocations: 262.7 kB / 340 MB, free: 7.887 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002574/0.1141, allocations: 161.6 kB / 340.2 MB, free: 7.723 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.1141, allocations: 8 kB / 340.2 MB, free: 7.715 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006996/0.1148, allocations: 478.1 kB / 340.7 MB, free: 7.234 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.54e-05/0.1149, allocations: 38.16 kB / 340.7 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1149, allocations: 8 kB / 340.7 MB, free: 7.184 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.1149, allocations: 8 kB / 340.7 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.1151, allocations: 47.8 kB / 340.8 MB, free: 7.129 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.1151, allocations: 7.984 kB / 340.8 MB, free: 7.121 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.1153, allocations: 55.67 kB / 340.8 MB, free: 7.066 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-05/0.1154, allocations: 27.92 kB / 340.9 MB, free: 7.039 MB / 286.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.0002639/0.1157, allocations: 248.6 kB / 341.1 MB, free: 6.777 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.318e-05/0.1157, allocations: 51.39 kB / 341.2 MB, free: 6.727 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000474/0.1162, allocations: 269.4 kB / 341.4 MB, free: 6.449 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.1162, allocations: 4 kB / 341.4 MB, free: 6.445 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.1162, allocations: 4 kB / 341.4 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.1163, allocations: 3.984 kB / 341.4 MB, free: 6.438 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000979/0.1172, allocations: 0.7789 MB / 342.2 MB, free: 5.602 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1173, allocations: 0 / 342.2 MB, free: 5.602 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.207e-05/0.1173, allocations: 11.94 kB / 342.2 MB, free: 5.59 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.1173, allocations: 8 kB / 342.2 MB, free: 5.582 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.1174, allocations: 11.98 kB / 342.2 MB, free: 5.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.1174, allocations: 4 kB / 342.2 MB, free: 5.566 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1174, allocations: 0 / 342.2 MB, free: 5.566 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000666/0.118, allocations: 0.5328 MB / 342.8 MB, free: 4.996 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.1182, allocations: 128.4 kB / 342.9 MB, free: 4.852 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.26e-05/0.1182, allocations: 12 kB / 342.9 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.1185, allocations: 31.97 kB / 342.9 MB, free: 4.809 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.1186, allocations: 43.89 kB / 343 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-05/0.1186, allocations: 19.98 kB / 343 MB, free: 4.746 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003351/0.119, allocations: 323.1 kB / 343.3 MB, free: 4.43 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.119, allocations: 3.938 kB / 343.3 MB, free: 4.426 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004405/0.1194, allocations: 116 kB / 343.4 MB, free: 4.312 MB / 286.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,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.0009829/0.1204, allocations: 463.4 kB / 343.9 MB, free: 3.871 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006176/0.121, allocations: 391.2 kB / 344.3 MB, free: 3.477 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.121, allocations: 0 / 344.3 MB, free: 3.477 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.1214, allocations: 246.9 kB / 344.5 MB, free: 3.223 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000404/0.1218, allocations: 78.39 kB / 344.6 MB, free: 3.148 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.123, allocations: 0.866 MB / 345.5 MB, free: 2.254 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003956/0.1234, allocations: 0.8514 MB / 346.3 MB, free: 1.379 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001869/0.1236, allocations: 79.81 kB / 346.4 MB, free: 1.297 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.1237, allocations: 43.42 kB / 346.4 MB, free: 1.254 MB / 286.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1237, allocations: 0 / 346.4 MB, free: 1.254 MB / 286.1 MB Notification: Performance of Templates: time 0.009232/0.133, allocations: 4.923 MB / 351.4 MB, free: 12.32 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/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_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches