Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.Counter3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.Counter3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_trunk_Modelica.Electrical.Digital.Examples.Counter3") translateModel(Modelica.Electrical.Digital.Examples.Counter3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_trunk_Modelica.Electrical.Digital.Examples.Counter3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001496/0.001496, allocations: 115.1 kB / 18.46 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001852/0.001852, allocations: 202.7 kB / 19.41 MB, free: 3.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 247.6 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2554, allocations: 50.55 MB / 409.9 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.Counter3): time 0.004069/0.2595, allocations: 3.583 MB / 413.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003194/0.2627, allocations: 1.715 MB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002122/0.2629, allocations: 11.94 kB / 415.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002979/0.2633, allocations: 126.9 kB / 415.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002102/0.2635, allocations: 99.08 kB / 415.5 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009296/0.2644, allocations: 499.5 kB / 416 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.2656, allocations: 1.374 MB / 417.3 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007745/0.2664, allocations: 0.554 MB / 417.9 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001635/0.268, allocations: 1.583 MB / 419.5 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000779/0.2688, allocations: 0.7161 MB / 420.2 MB, free: 7.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003169/0.2691, allocations: 156 kB / 420.3 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003145/0.2694, allocations: 156 kB / 420.5 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004693/0.2699, allocations: 438.6 kB / 420.9 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006694/0.2706, allocations: 0.6141 MB / 421.5 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002337/0.2729, allocations: 2.998 MB / 424.5 MB, free: 2.895 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.273, allocations: 4 kB / 424.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.273, allocations: 0 / 424.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.528e-05/0.273, allocations: 0 / 424.5 MB, free: 2.891 MB / 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.002485/0.2755, allocations: 1.678 MB / 426.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.2756, allocations: 12.03 kB / 426.2 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002826/0.2758, allocations: 111.6 kB / 426.3 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00117/0.277, allocations: 0.6849 MB / 427 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.809e-05/0.2771, allocations: 74.38 kB / 427.1 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002209/0.2773, allocations: 92.38 kB / 427.2 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002248/0.2796, allocations: 1.331 MB / 428.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.2796, allocations: 3.938 kB / 428.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001661/0.2798, allocations: 36 kB / 428.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.133e-05/0.2798, allocations: 24 kB / 428.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002081/0.2819, allocations: 1.074 MB / 429.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005305/0.2872, allocations: 3.144 MB / 432.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002216/0.2895, allocations: 1.083 MB / 433.9 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008727/0.2904, allocations: 447.6 kB / 434.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000131/0.2905, allocations: 9 kB / 434.3 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001372/0.2919, allocations: 0.8363 MB / 435.2 MB, free: 8.086 MB / 350.1 MB Notification: Performance of pre-optimization done (n=94): time 3.446e-06/0.2919, allocations: 3.938 kB / 435.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.003347/0.2953, allocations: 1.645 MB / 436.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.973e-05/0.2953, allocations: 90.11 kB / 436.9 MB, free: 6.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000757/0.2961, allocations: 0.5441 MB / 437.4 MB, free: 5.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001479/0.2963, allocations: 69.69 kB / 437.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002464/0.2965, allocations: 321 kB / 437.8 MB, free: 5.367 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002871/0.2968, allocations: 221.3 kB / 438 MB, free: 5.148 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006903/0.2975, allocations: 498.5 kB / 438.5 MB, free: 4.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.2977, allocations: 370.8 kB / 438.9 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008994/0.2986, allocations: 470.4 kB / 439.3 MB, free: 3.824 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009803/0.2996, allocations: 0.5959 MB / 439.9 MB, free: 3.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00199/0.3016, allocations: 1.161 MB / 441.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.3016, allocations: 0 / 441.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002567/0.3042, allocations: 1.478 MB / 442.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.032e-05/0.3042, allocations: 33.7 kB / 442.6 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.3042, allocations: 4 kB / 442.6 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/0.3043, allocations: 4 kB / 442.6 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003334/0.3046, allocations: 175.7 kB / 442.8 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.569e-05/0.3046, allocations: 11.94 kB / 442.8 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004285/0.3051, allocations: 59.67 kB / 442.9 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007334/0.3058, allocations: 0.8194 MB / 443.7 MB, free: 15.38 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.0008153/0.3066, allocations: 0.5049 MB / 444.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002153/0.3069, allocations: 63.25 kB / 444.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001522/0.307, allocations: 78.89 kB / 444.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.307, allocations: 11.97 kB / 444.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.3071, allocations: 0 / 444.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008194/0.3079, allocations: 444.1 kB / 444.8 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002411/0.3081, allocations: 44 kB / 444.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003405/0.3085, allocations: 31.98 kB / 444.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003939/0.3089, allocations: 196.8 kB / 445 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002737/0.3116, allocations: 1.533 MB / 446.6 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002424/0.3141, allocations: 1.465 MB / 448 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008819/0.315, allocations: 0.4919 MB / 448.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004071/0.3154, allocations: 335.1 kB / 448.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of Backend: time 4.71e-07/0.3154, allocations: 4 kB / 448.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002064/0.3175, allocations: 0.8997 MB / 449.8 MB, free: 9.199 MB / 366.1 MB Notification: Performance of SimCode: time 0.003983/0.3215, allocations: 2.236 MB / 452 MB, free: 6.91 MB / 366.1 MB Notification: Performance of Templates: time 0.04503/0.3665, allocations: 34.66 MB / 486.7 MB, free: 2.887 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.Counter3.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.Counter3.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.Counter3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.Counter3.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.Counter3.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.Counter3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.Counter3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.Counter3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/Counter3/Counter3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.Counter3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches