Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 169.2 kB / 24.5 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.426/1.426, allocations: 177.2 MB / 204.9 MB, free: 9.039 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,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_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,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_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 55.78 kB / 325.6 MB, free: 268 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1021, allocations: 53.33 MB / 378.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004236/0.1063, allocations: 2.407 MB / 381.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002618/0.1089, allocations: 1.418 MB / 382.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001845/0.1091, allocations: 11.94 kB / 382.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000775/0.1099, allocations: 254.8 kB / 383 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000492/0.1104, allocations: 211 kB / 383.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006333/0.111, allocations: 275.3 kB / 383.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005541/0.1116, allocations: 475.7 kB / 383.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002825/0.1118, allocations: 146.3 kB / 384.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000237/0.1121, allocations: 199.2 kB / 384.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002666/0.1123, allocations: 199 kB / 384.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.839e-05/0.1124, allocations: 40 kB / 384.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00025/0.1127, allocations: 123.9 kB / 384.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.1128, allocations: 135.5 kB / 384.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001923/0.113, allocations: 175 kB / 384.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007054/0.1137, allocations: 0.5639 MB / 385.5 MB, free: 9.059 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1137, allocations: 4 kB / 385.5 MB, free: 9.055 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1137, allocations: 0 / 385.5 MB, free: 9.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1137, allocations: 0 / 385.5 MB, free: 9.055 MB / 350.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.001366/0.1151, allocations: 0.8026 MB / 386.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.1151, allocations: 8.031 kB / 386.3 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002994/0.1154, allocations: 72.55 kB / 386.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005428/0.116, allocations: 320.5 kB / 386.7 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.978e-05/0.1161, allocations: 84.97 kB / 386.8 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.268e-05/0.1161, allocations: 43.94 kB / 386.8 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007286/0.1169, allocations: 449.7 kB / 387.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.1169, allocations: 11.94 kB / 387.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.193e-05/0.1169, allocations: 23.98 kB / 387.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.41e-05/0.1169, allocations: 16.48 kB / 387.3 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005245/0.1175, allocations: 287.4 kB / 387.6 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001928/0.1194, allocations: 1.516 MB / 389.1 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006068/0.12, allocations: 293.7 kB / 389.4 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000264/0.1203, allocations: 140.3 kB / 389.5 MB, free: 4.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.562e-05/0.1203, allocations: 11.98 kB / 389.5 MB, free: 4.758 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005149/0.1208, allocations: 359.7 kB / 389.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.864e-06/0.1208, allocations: 0 / 389.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001054/0.1219, allocations: 0.5285 MB / 390.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.752e-05/0.122, allocations: 144.4 kB / 390.6 MB, free: 3.641 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005808/0.1226, allocations: 0.4935 MB / 391 MB, free: 3.137 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.637e-05/0.1226, allocations: 41.7 kB / 391.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001994/0.1228, allocations: 240.8 kB / 391.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.142e-05/0.1229, allocations: 87.36 kB / 391.4 MB, free: 2.766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.1231, allocations: 122.1 kB / 391.5 MB, free: 2.641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002712/0.1233, allocations: 358.7 kB / 391.9 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002792/0.1236, allocations: 146.6 kB / 392 MB, free: 2.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004345/0.124, allocations: 316.6 kB / 392.3 MB, free: 1.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006447/0.1247, allocations: 406.5 kB / 392.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1247, allocations: 0 / 392.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008831/0.1256, allocations: 0.4887 MB / 393.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.648e-05/0.1256, allocations: 37.7 kB / 393.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.1256, allocations: 4 kB / 393.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.61e-05/0.1257, allocations: 15.92 kB / 393.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.1258, allocations: 43.86 kB / 393.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.809e-05/0.1258, allocations: 7.938 kB / 393.3 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002556/0.1261, allocations: 51.7 kB / 393.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.145e-05/0.1261, allocations: 24.59 kB / 393.4 MB, free: 0.5898 MB / 350.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.0003248/0.1265, allocations: 252.6 kB / 393.6 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-05/0.1266, allocations: 51.7 kB / 393.7 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008047/0.1274, allocations: 416.5 kB / 394.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.1274, allocations: 8 kB / 394.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1274, allocations: 0 / 394.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.1274, allocations: 7.984 kB / 394.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/0.1284, allocations: 0.6261 MB / 394.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.1284, allocations: 4 kB / 394.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.197e-05/0.1285, allocations: 15.92 kB / 394.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.219e-06/0.1285, allocations: 4 kB / 394.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.1285, allocations: 8 kB / 394.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.508e-06/0.1285, allocations: 7.984 kB / 394.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.1285, allocations: 3.938 kB / 394.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008349/0.1294, allocations: 0.5276 MB / 395.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.292e-05/0.1294, allocations: 47.66 kB / 395.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.177e-05/0.1295, allocations: 11.98 kB / 395.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.1297, allocations: 19.98 kB / 395.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.1298, allocations: 47.94 kB / 395.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.195e-05/0.1299, allocations: 11.98 kB / 395.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003784/0.1302, allocations: 327.1 kB / 395.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1302, allocations: 0 / 395.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004644/0.1307, allocations: 119.7 kB / 395.9 MB, free: 14 MB / 366.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,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * 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.001809/0.1325, allocations: 489.6 kB / 396.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007712/0.1333, allocations: 435.1 kB / 396.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1333, allocations: 0 / 396.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003721/0.1337, allocations: 233 kB / 397 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005624/0.1342, allocations: 90.28 kB / 397.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.1357, allocations: 0.8245 MB / 397.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/0.136, allocations: 243.1 kB / 398.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001987/0.1362, allocations: 75.41 kB / 398.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.1363, allocations: 44.42 kB / 398.3 MB, free: 11.67 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1363, allocations: 0 / 398.3 MB, free: 11.67 MB / 366.1 MB Notification: Performance of Templates: time 0.01183/0.1481, allocations: 5.406 MB / 403.7 MB, free: 6.332 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.464719461044297]