Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.Counter3.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.001664/0.001664, allocations: 110.4 kB / 21.19 MB, free: 0.6641 MB / 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.002044/0.002044, allocations: 209.7 kB / 24.49 MB, free: 3.965 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.494/1.494, allocations: 230.6 MB / 258.3 MB, free: 7.793 MB / 206.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.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.1.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.1.0_Modelica.Electrical.Digital.Examples.Counter3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 55.86 kB / 379 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.226, allocations: 53.37 MB / 432.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.Counter3): time 0.004842/0.2308, allocations: 3.116 MB / 435.5 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003636/0.2344, allocations: 1.664 MB / 437.1 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002865/0.2347, allocations: 19.81 kB / 437.1 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003598/0.2351, allocations: 138.8 kB / 437.3 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003018/0.2354, allocations: 99.09 kB / 437.4 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.2365, allocations: 0.5072 MB / 437.9 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00146/0.2379, allocations: 1.394 MB / 439.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006002/0.2385, allocations: 379.9 kB / 439.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001751/0.2403, allocations: 1.599 MB / 441.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009671/0.2412, allocations: 0.7589 MB / 442 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000331/0.2416, allocations: 152 kB / 442.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003261/0.2419, allocations: 156 kB / 442.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005095/0.2424, allocations: 442.5 kB / 442.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006065/0.243, allocations: 497.5 kB / 443.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002887/0.2459, allocations: 3.024 MB / 446.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2459, allocations: 0 / 446.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.2459, allocations: 0 / 446.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.257e-05/0.2459, allocations: 4 kB / 446.2 MB, free: 8.777 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: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.003024/0.249, allocations: 1.631 MB / 447.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.249, allocations: 11.98 kB / 447.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003576/0.2494, allocations: 124.2 kB / 448 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001398/0.2508, allocations: 0.6248 MB / 448.6 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.699e-05/0.2508, allocations: 66.38 kB / 448.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002702/0.2511, allocations: 88.38 kB / 448.8 MB, free: 6.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002697/0.2538, allocations: 1.36 MB / 450.1 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.2538, allocations: 4 kB / 450.2 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001792/0.254, allocations: 36 kB / 450.2 MB, free: 4.754 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/0.254, allocations: 20 kB / 450.2 MB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002277/0.2563, allocations: 1.103 MB / 451.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005599/0.2619, allocations: 2.686 MB / 454 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002497/0.2644, allocations: 1.067 MB / 455.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009406/0.2654, allocations: 445.3 kB / 455.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001414/0.2655, allocations: 13 kB / 455.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00159/0.2671, allocations: 0.8614 MB / 456.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=94): time 3.396e-06/0.2671, allocations: 0 / 456.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=94): time 0.003694/0.2708, allocations: 1.696 MB / 458.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.704e-05/0.2709, allocations: 98.09 kB / 458.2 MB, free: 12.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007819/0.2716, allocations: 0.5483 MB / 458.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001916/0.2718, allocations: 65.69 kB / 458.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002976/0.2721, allocations: 333.7 kB / 459.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003404/0.2725, allocations: 226.4 kB / 459.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008097/0.2733, allocations: 494.6 kB / 459.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002195/0.2735, allocations: 374.8 kB / 460.2 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.2746, allocations: 0.4884 MB / 460.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.2758, allocations: 0.6171 MB / 461.3 MB, free: 9.453 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002298/0.2781, allocations: 1.161 MB / 462.4 MB, free: 8.242 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.2781, allocations: 4 kB / 462.4 MB, free: 8.238 MB / 366.1 MB Notification: Performance of matching and sorting (n=129) (initialization): time 0.003046/0.2811, allocations: 1.496 MB / 463.9 MB, free: 6.723 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.772e-05/0.2812, allocations: 37.69 kB / 464 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.2812, allocations: 0 / 464 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.2812, allocations: 11.98 kB / 464 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004067/0.2816, allocations: 163.7 kB / 464.1 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.409e-05/0.2816, allocations: 11.98 kB / 464.2 MB, free: 6.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004748/0.2821, allocations: 67.8 kB / 464.2 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008518/0.2829, allocations: 0.8156 MB / 465 MB, free: 5.613 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.0008771/0.2838, allocations: 0.4932 MB / 465.5 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002294/0.284, allocations: 75.52 kB / 465.6 MB, free: 5.027 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001487/0.2842, allocations: 86.88 kB / 465.7 MB, free: 4.941 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.2842, allocations: 3.984 kB / 465.7 MB, free: 4.938 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2842, allocations: 3.938 kB / 465.7 MB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009885/0.2852, allocations: 377.2 kB / 466.1 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002852/0.2855, allocations: 51.98 kB / 466.1 MB, free: 4.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003498/0.2858, allocations: 35.98 kB / 466.2 MB, free: 4.477 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004327/0.2863, allocations: 192.8 kB / 466.3 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002966/0.2892, allocations: 1.555 MB / 467.9 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002757/0.292, allocations: 1.49 MB / 469.4 MB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009704/0.293, allocations: 497.4 kB / 469.9 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004026/0.2934, allocations: 339.1 kB / 470.2 MB, free: 368 kB / 366.1 MB Notification: Performance of Backend: time 4.31e-07/0.2934, allocations: 0 / 470.2 MB, free: 368 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002123/0.2955, allocations: 0.8938 MB / 471.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of SimCode: time 0.004086/0.2996, allocations: 2.25 MB / 473.3 MB, free: 13.13 MB / 382.1 MB Notification: Performance of Templates: time 0.04978/0.3493, allocations: 36.74 MB / 0.4981 GB, free: 7.109 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.Counter3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.Counter3.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.Counter3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.Counter3.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.Counter3.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.Counter3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.Counter3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.Counter3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/Counter3/Counter3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.878921650000848]