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.001155/0.001155, allocations: 110 kB / 18.25 MB, free: 4.895 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.001298/0.001298, allocations: 199.5 kB / 19.18 MB, free: 3.973 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.408/1.408, allocations: 205.1 MB / 225 MB, free: 12.29 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.001231/0.001231, allocations: 55.86 kB / 281.3 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08483/0.08608, allocations: 46.63 MB / 327.9 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004239/0.09036, allocations: 2.426 MB / 330.4 MB, free: 2.02 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.09257, allocations: 1.252 MB / 331.6 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002202/0.09282, allocations: 15.94 kB / 331.6 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008149/0.09365, allocations: 238.9 kB / 331.9 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003867/0.09404, allocations: 159.1 kB / 332 MB, free: 360 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006773/0.09473, allocations: 275.4 kB / 332.3 MB, free: 84 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004788/0.09522, allocations: 467.8 kB / 332.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003414/0.09557, allocations: 217.8 kB / 333 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002226/0.0958, allocations: 195.2 kB / 333.2 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002383/0.09605, allocations: 211.1 kB / 333.4 MB, free: 15 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.047e-05/0.09612, allocations: 32 kB / 333.4 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002669/0.09639, allocations: 127.9 kB / 333.5 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.09654, allocations: 127.5 kB / 333.6 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.09674, allocations: 214.7 kB / 333.8 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005987/0.09735, allocations: 0.5298 MB / 334.4 MB, free: 13.98 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.09737, allocations: 11.94 kB / 334.4 MB, free: 13.97 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.09738, allocations: 0 / 334.4 MB, free: 13.97 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.09739, allocations: 0 / 334.4 MB, free: 13.97 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.00132/0.09871, allocations: 0.8512 MB / 335.2 MB, free: 13.06 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.09876, allocations: 8.031 kB / 335.3 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.09888, allocations: 56.28 kB / 335.3 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005047/0.09939, allocations: 391 kB / 335.7 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.265e-05/0.09948, allocations: 63.27 kB / 335.7 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.271e-05/0.09954, allocations: 43.94 kB / 335.8 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006573/0.1002, allocations: 424.7 kB / 336.2 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.1002, allocations: 0 / 336.2 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.649e-05/0.1003, allocations: 20 kB / 336.2 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.478e-05/0.1003, allocations: 12.44 kB / 336.2 MB, free: 11.97 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004689/0.1008, allocations: 265.4 kB / 336.5 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001984/0.1028, allocations: 1.678 MB / 338.2 MB, free: 9.949 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006069/0.1034, allocations: 299.9 kB / 338.5 MB, free: 9.629 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002589/0.1037, allocations: 134.5 kB / 338.6 MB, free: 9.488 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.684e-05/0.1037, allocations: 11.98 kB / 338.6 MB, free: 9.477 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004931/0.1042, allocations: 335.8 kB / 338.9 MB, free: 9.109 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 2.735e-06/0.1043, allocations: 0 / 338.9 MB, free: 9.109 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009534/0.1052, allocations: 494.6 kB / 339.4 MB, free: 8.613 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.44e-05/0.1053, allocations: 158.2 kB / 339.6 MB, free: 8.422 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000487/0.1058, allocations: 497.2 kB / 340.1 MB, free: 7.93 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/0.1058, allocations: 37.7 kB / 340.1 MB, free: 7.887 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.106, allocations: 236.5 kB / 340.3 MB, free: 7.652 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.116e-05/0.1061, allocations: 79 kB / 340.4 MB, free: 7.574 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.1063, allocations: 118.2 kB / 340.5 MB, free: 7.453 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1064, allocations: 362.7 kB / 340.9 MB, free: 7.09 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002319/0.1066, allocations: 121.1 kB / 341 MB, free: 6.973 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003416/0.107, allocations: 266.7 kB / 341.3 MB, free: 6.652 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000535/0.1075, allocations: 430.4 kB / 341.7 MB, free: 6.164 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.1075, allocations: 0 / 341.7 MB, free: 6.164 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007662/0.1083, allocations: 474.3 kB / 342.1 MB, free: 5.688 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.997e-05/0.1084, allocations: 37.69 kB / 342.2 MB, free: 5.645 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.1084, allocations: 4 kB / 342.2 MB, free: 5.641 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.1084, allocations: 8 kB / 342.2 MB, free: 5.633 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/0.1086, allocations: 39.86 kB / 342.2 MB, free: 5.594 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.445e-05/0.1086, allocations: 11.98 kB / 342.2 MB, free: 5.582 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002401/0.1088, allocations: 56.02 kB / 342.3 MB, free: 5.527 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.382e-05/0.1089, allocations: 20 kB / 342.3 MB, free: 5.508 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,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.0002739/0.1092, allocations: 256.5 kB / 342.6 MB, free: 5.242 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.164e-05/0.1093, allocations: 47.44 kB / 342.6 MB, free: 5.195 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004976/0.1098, allocations: 269.3 kB / 342.9 MB, free: 4.918 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.1098, allocations: 4 kB / 342.9 MB, free: 4.914 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1098, allocations: 0 / 342.9 MB, free: 4.914 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.1098, allocations: 3.984 kB / 342.9 MB, free: 4.91 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.1109, allocations: 0.7827 MB / 343.7 MB, free: 4.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1109, allocations: 0 / 343.7 MB, free: 4.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.356e-05/0.1109, allocations: 19.94 kB / 343.7 MB, free: 4.051 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.111, allocations: 4 kB / 343.7 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.257e-05/0.111, allocations: 15.92 kB / 343.7 MB, free: 4.031 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.111, allocations: 7.938 kB / 343.7 MB, free: 4.023 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.111, allocations: 0 / 343.7 MB, free: 4.023 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007009/0.1117, allocations: 0.5094 MB / 344.2 MB, free: 3.488 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.803e-05/0.1118, allocations: 120.6 kB / 344.3 MB, free: 3.352 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.834e-05/0.1119, allocations: 11.94 kB / 344.3 MB, free: 3.34 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.1121, allocations: 23.97 kB / 344.4 MB, free: 3.316 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.1122, allocations: 43.89 kB / 344.4 MB, free: 3.273 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.583e-05/0.1123, allocations: 19.98 kB / 344.4 MB, free: 3.254 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003213/0.1126, allocations: 319.1 kB / 344.7 MB, free: 2.949 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1126, allocations: 4 kB / 344.7 MB, free: 2.945 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004954/0.1131, allocations: 124 kB / 344.9 MB, free: 2.824 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 (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.001069/0.1142, allocations: 457 kB / 345.3 MB, free: 2.379 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007716/0.115, allocations: 419.6 kB / 345.7 MB, free: 1.957 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.115, allocations: 0 / 345.7 MB, free: 1.957 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004054/0.1154, allocations: 247.5 kB / 346 MB, free: 1.703 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00056/0.116, allocations: 86.02 kB / 346.1 MB, free: 1.617 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.1174, allocations: 0.8374 MB / 346.9 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004488/0.1179, allocations: 0.8361 MB / 347.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.118, allocations: 47.42 kB / 347.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1181, allocations: 0 / 347.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of Templates: time 0.01011/0.1282, allocations: 6.305 MB / 354.1 MB, free: 9.516 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.makefile (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) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches