Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Counter3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 113.8 kB / 20.38 MB, free: 1.426 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 197.4 kB / 23.67 MB, free: 4.723 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 225.6 MB / 252.4 MB, free: 13.29 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Electrical.Digital.Examples.Counter3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Counter.FF1.RS1.TD1.x|Counter.FF1.RS2.TD1.x|Counter.FF2.RS1.TD1.x|Counter.FF2.RS2.TD1.x|Counter.FF3.RS1.TD1.x|Counter.FF3.RS2.TD1.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Counter3") translateModel(Modelica.Electrical.Digital.Examples.Counter3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Counter.FF1.RS1.TD1.x|Counter.FF1.RS2.TD1.x|Counter.FF2.RS1.TD1.x|Counter.FF2.RS2.TD1.x|Counter.FF3.RS1.TD1.x|Counter.FF3.RS2.TD1.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Counter3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 55.91 kB / 370.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.221, allocations: 52.14 MB / 422.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.Counter3): time 0.005284/0.2263, allocations: 3.59 MB / 426.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00348/0.2298, allocations: 1.696 MB / 428.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000288/0.2301, allocations: 11.94 kB / 428.2 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003289/0.2304, allocations: 138.8 kB / 428.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002604/0.2307, allocations: 95.09 kB / 428.4 MB, free: 9.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009312/0.2316, allocations: 499.5 kB / 428.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001366/0.233, allocations: 1.37 MB / 430.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005987/0.2336, allocations: 391.4 kB / 430.7 MB, free: 7.172 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00179/0.2354, allocations: 1.591 MB / 432.2 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001042/0.2364, allocations: 0.7589 MB / 433 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000273/0.2367, allocations: 156 kB / 433.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002667/0.2369, allocations: 156 kB / 433.3 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004726/0.2374, allocations: 442.5 kB / 433.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006425/0.2381, allocations: 0.6141 MB / 434.4 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002693/0.2407, allocations: 3.007 MB / 437.4 MB, free: 456 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.2408, allocations: 0 / 437.4 MB, free: 456 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2408, allocations: 0 / 437.4 MB, free: 456 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.821e-05/0.2408, allocations: 4 kB / 437.4 MB, free: 452 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.002623/0.2434, allocations: 1.707 MB / 439.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.2434, allocations: 8.031 kB / 439.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002909/0.2437, allocations: 120.2 kB / 439.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001332/0.2451, allocations: 0.6853 MB / 439.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.486e-05/0.2451, allocations: 70.38 kB / 440 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002366/0.2454, allocations: 88.38 kB / 440 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/0.2478, allocations: 1.339 MB / 441.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.2478, allocations: 0 / 441.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001826/0.248, allocations: 36 kB / 441.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.248, allocations: 20 kB / 441.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002155/0.2501, allocations: 1.074 MB / 442.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005743/0.2559, allocations: 3.149 MB / 445.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002283/0.2582, allocations: 1.048 MB / 446.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008668/0.259, allocations: 415.6 kB / 447.1 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001316/0.2592, allocations: 16.94 kB / 447.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001443/0.2606, allocations: 0.8363 MB / 448 MB, free: 5.656 MB / 350.1 MB Notification: Performance of pre-optimization done (n=94): time 2.886e-06/0.2606, allocations: 0 / 448 MB, free: 5.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.003432/0.264, allocations: 1.653 MB / 449.6 MB, free: 3.992 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.941e-05/0.2641, allocations: 90.11 kB / 449.7 MB, free: 3.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007317/0.2648, allocations: 0.5483 MB / 450.2 MB, free: 3.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001764/0.265, allocations: 65.69 kB / 450.3 MB, free: 3.262 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/0.2653, allocations: 337.6 kB / 450.6 MB, free: 2.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003087/0.2656, allocations: 222.4 kB / 450.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007402/0.2663, allocations: 490.7 kB / 451.3 MB, free: 2.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.2665, allocations: 370.8 kB / 451.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009858/0.2675, allocations: 474.4 kB / 452.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/0.2686, allocations: 0.5881 MB / 452.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00217/0.2708, allocations: 1.169 MB / 453.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.2708, allocations: 4 kB / 453.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002812/0.2736, allocations: 1.479 MB / 455.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.812e-05/0.2737, allocations: 37.7 kB / 455.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.2737, allocations: 7.984 kB / 455.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.2737, allocations: 8 kB / 455.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000369/0.2741, allocations: 167.7 kB / 455.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.664e-05/0.2741, allocations: 8 kB / 455.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000441/0.2745, allocations: 59.86 kB / 455.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008013/0.2753, allocations: 0.8194 MB / 456.5 MB, free: 12.94 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 122 ($whenCondition1,$PRE.Counter.FF1.And2.auxiliary_n,Counter.FF1.RS2.TD1.x_delayed,$PRE.Counter.FF1.RS2.TD1.x,Counter.FF1.RS2.Nor2.auxiliary_n,Counter.FF1.RS2.Nor2.auxiliary[2],Counter.FF1.RS2.Nor2.x[2],Counter.FF1.RS2.Nor2.x[1],$PRE.Counter.FF1.And4.auxiliary_n,Counter.FF1.RS1.TD1.x_delayed,$PRE.Counter.FF1.RS1.TD1.x,Counter.FF1.RS1.Nor2.auxiliary_n,Counter.FF1.RS1.Nor2.auxiliary[2],Counter.FF1.RS1.Nor2.x[2],Counter.FF1.RS1.Nor2.x[1],$PRE.Counter.FF1.Not1.auxiliary,Counter.FF1.And4.auxiliary_n,Counter.FF1.And4.x[1],Counter.FF1.And3.auxiliary_n,Counter.FF1.And3.x[2],$PRE.Counter.FF1.And1.auxiliary_n,Counter.FF1.And1.y,Counter.FF1.RS2.TD1.x,$PRE.Counter.FF1.RS2.Nor2.auxiliary_n,Counter.FF1.RS2.Nor1.auxiliary_n,$PRE.Counter.FF1.RS2.Nor1.auxiliary_n,Counter.FF1.RS2.Nor1.auxiliary[2],$PRE.Counter.FF2.And2.auxiliary_n,Counter.FF2.RS2.TD1.x_delayed,$PRE.Counter.FF2.RS2.TD1.x,Counter.FF2.RS2.Nor2.auxiliary_n,Counter.FF2.RS2.Nor2.auxiliary[2],Counter.FF2.RS2.Nor2.x[2],Counter.FF2.RS2.Nor2.x[1],$PRE.Counter.FF2.And4.auxiliary_n,Counter.FF2.RS1.TD1.x_delayed,$PRE.Counter.FF2.RS1.TD1.x,Counter.FF2.RS1.Nor2.auxiliary_n,Counter.FF2.RS1.Nor2.auxiliary[2],Counter.FF2.RS1.Nor2.x[2],Counter.FF2.RS1.Nor2.x[1],$PRE.Counter.FF2.Not1.auxiliary,Counter.FF2.And4.auxiliary_n,Counter.FF2.And4.x[1],Counter.FF2.And3.auxiliary_n,Counter.FF2.And3.x[2],$PRE.Counter.FF2.And1.auxiliary_n,Counter.FF2.And1.y,Counter.FF2.RS2.TD1.x,$PRE.Counter.FF2.RS2.Nor2.auxiliary_n,Counter.FF2.RS2.Nor1.auxiliary_n,$PRE.Counter.FF2.RS2.Nor1.auxiliary_n,Counter.FF2.RS2.Nor1.auxiliary[2],$PRE.Counter.FF3.And2.auxiliary_n,Counter.FF3.RS2.TD1.x_delayed,$PRE.Counter.FF3.RS2.TD1.x,Counter.FF3.RS2.Nor2.auxiliary_n,Counter.FF3.RS2.Nor2.auxiliary[2],Counter.FF3.RS2.Nor2.x[2],Counter.FF3.RS2.Nor2.x[1],$PRE.Counter.FF3.And4.auxiliary_n,Counter.FF3.RS1.TD1.x_delayed,$PRE.Counter.FF3.RS1.TD1.x,Counter.FF3.RS1.Nor2.auxiliary_n,Counter.FF3.RS1.Nor2.auxiliary[2],Counter.FF3.RS1.Nor2.x[2],Counter.FF3.RS1.Nor2.x[1],$PRE.Counter.FF3.Not1.auxiliary,Counter.FF3.And4.auxiliary_n,Counter.FF3.And4.x[1],Counter.FF3.And3.auxiliary_n,Counter.FF3.And3.x[2],$PRE.Counter.FF3.And1.auxiliary_n,Counter.FF3.And1.y,Counter.FF3.RS2.TD1.x,$PRE.Counter.FF3.RS2.Nor2.auxiliary_n,Counter.FF3.RS2.Nor1.auxiliary_n,$PRE.Counter.FF3.RS2.Nor1.auxiliary_n,Counter.FF3.RS2.Nor1.auxiliary[2],Counter.FF3.Not1.auxiliary,$PRE.Counter.FF3.And3.auxiliary_n,Counter.FF3.And3.y,Counter.FF3.And2.auxiliary_n,Counter.FF3.And2.auxiliary[2],Counter.FF3.And2.x[1],Counter.FF3.And1.auxiliary_n,Counter.FF3.And1.auxiliary[2],Counter.FF3.RS1.TD1.x,$PRE.Counter.FF3.RS1.Nor2.auxiliary_n,Counter.FF3.RS1.Nor1.auxiliary_n,$PRE.Counter.FF3.RS1.Nor1.auxiliary_n,Counter.FF3.RS1.Nor1.auxiliary[2],Counter.FF2.Not1.auxiliary,$PRE.Counter.FF2.And3.auxiliary_n,Counter.FF2.And3.y,Counter.FF2.And2.auxiliary_n,Counter.FF2.And2.auxiliary[2],Counter.FF2.And2.x[1],Counter.FF2.And1.auxiliary_n,Counter.FF2.And1.auxiliary[2],Counter.FF2.RS1.TD1.x,$PRE.Counter.FF2.RS1.Nor2.auxiliary_n,Counter.FF2.RS1.Nor1.auxiliary_n,$PRE.Counter.FF2.RS1.Nor1.auxiliary_n,Counter.FF2.RS1.Nor1.auxiliary[2],Counter.FF1.Not1.auxiliary,$PRE.Counter.FF1.And3.auxiliary_n,Counter.FF1.And3.y,Counter.FF1.And2.auxiliary_n,Counter.FF1.And2.auxiliary[2],Counter.FF1.And2.x[1],Counter.FF1.And1.auxiliary_n,Counter.FF1.And1.auxiliary[2],Counter.FF1.RS1.TD1.x,$PRE.Counter.FF1.RS1.Nor2.auxiliary_n,Counter.FF1.RS1.Nor1.auxiliary_n,$PRE.Counter.FF1.RS1.Nor1.auxiliary_n,Counter.FF1.RS1.Nor1.auxiliary[2],Counter.count,clock.t_i,$PRE.clock.t_i,Enable.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 128 * 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.0008745/0.2762, allocations: 0.5048 MB / 457 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.2764, allocations: 71.58 kB / 457.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001411/0.2766, allocations: 78.88 kB / 457.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.2766, allocations: 3.984 kB / 457.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.2766, allocations: 0 / 457.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009861/0.2776, allocations: 448.4 kB / 457.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002757/0.2778, allocations: 48 kB / 457.6 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.2782, allocations: 39.92 kB / 457.7 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004011/0.2786, allocations: 196.8 kB / 457.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002866/0.2814, allocations: 1.526 MB / 459.4 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002694/0.2841, allocations: 1.465 MB / 460.9 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009446/0.2851, allocations: 475.7 kB / 461.3 MB, free: 8.027 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005167/0.2856, allocations: 331.1 kB / 461.7 MB, free: 7.699 MB / 366.1 MB Notification: Performance of Backend: time 6.11e-07/0.2856, allocations: 8 kB / 461.7 MB, free: 7.691 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00238/0.288, allocations: 0.8616 MB / 462.5 MB, free: 6.812 MB / 366.1 MB Notification: Performance of SimCode: time 0.004773/0.2927, allocations: 2.273 MB / 464.8 MB, free: 4.484 MB / 366.1 MB Notification: Performance of Templates: time 0.05046/0.3432, allocations: 34.9 MB / 499.7 MB, free: 256 kB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Counter3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Counter3.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Counter3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Counter3.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Counter3.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Counter3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Counter3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Counter3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/Counter3/Counter3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.Counter3.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.682724347803742]