Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) 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.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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.Counter3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 107.3 kB / 18.4 MB, free: 4.566 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.001057/0.001057, allocations: 191.3 kB / 19.34 MB, free: 3.645 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.419/1.419, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001477/0.001477, allocations: 55.92 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.107, allocations: 46.61 MB / 375.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.Counter3): time 0.00506/0.1121, allocations: 3.571 MB / 379.4 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1937/0.3058, allocations: 1.727 MB / 381.1 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002728/0.3061, allocations: 15.34 kB / 381.1 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000312/0.3065, allocations: 134.6 kB / 381.3 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002236/0.3067, allocations: 88.91 kB / 381.3 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008216/0.3076, allocations: 0.4895 MB / 381.8 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001168/0.3087, allocations: 1.371 MB / 383.2 MB, free: 9.277 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008015/0.3095, allocations: 0.5464 MB / 383.8 MB, free: 9.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00174/0.3113, allocations: 1.593 MB / 385.3 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009164/0.3122, allocations: 0.7146 MB / 386.1 MB, free: 8.344 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003507/0.3126, allocations: 160.1 kB / 386.2 MB, free: 8.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003566/0.313, allocations: 155.3 kB / 386.4 MB, free: 8.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004982/0.3135, allocations: 439.9 kB / 386.8 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006296/0.3141, allocations: 0.6171 MB / 387.4 MB, free: 7.648 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003256/0.3174, allocations: 2.998 MB / 390.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3174, allocations: 0 / 390.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3174, allocations: 1.031 kB / 390.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.417e-05/0.3174, allocations: 0 / 390.4 MB, free: 6.867 MB / 318.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.00308/0.3205, allocations: 1.685 MB / 392.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.3206, allocations: 10.81 kB / 392.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003479/0.3209, allocations: 114.8 kB / 392.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.322, allocations: 0.6804 MB / 392.9 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.057e-05/0.3221, allocations: 72.22 kB / 393 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002626/0.3223, allocations: 88.66 kB / 393.1 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002717/0.3251, allocations: 1.33 MB / 394.4 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/0.3251, allocations: 5.125 kB / 394.4 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001728/0.3253, allocations: 40 kB / 394.4 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.161e-05/0.3253, allocations: 21.53 kB / 394.5 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002179/0.3275, allocations: 1.067 MB / 395.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004683/0.3322, allocations: 3.151 MB / 398.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00216/0.3344, allocations: 1.087 MB / 399.8 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008758/0.3353, allocations: 445.7 kB / 400.2 MB, free: 1.672 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001991/0.3355, allocations: 12.97 kB / 400.2 MB, free: 1.672 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001399/0.3369, allocations: 0.8352 MB / 401 MB, free: 1.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=94): time 3.346e-06/0.3369, allocations: 0 / 401 MB, free: 1.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.003319/0.3402, allocations: 1.64 MB / 402.7 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/0.3403, allocations: 87.89 kB / 402.8 MB, free: 444 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006586/0.3409, allocations: 0.5502 MB / 403.3 MB, free: 60 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001559/0.3411, allocations: 63.08 kB / 403.4 MB, free: 4 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002623/0.3414, allocations: 336.2 kB / 403.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002845/0.3417, allocations: 219.9 kB / 403.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007809/0.3424, allocations: 497.4 kB / 404.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.3426, allocations: 368.8 kB / 404.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001013/0.3437, allocations: 471.9 kB / 405.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/0.3447, allocations: 0.5895 MB / 405.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002079/0.3468, allocations: 1.165 MB / 407 MB, free: 13.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.3468, allocations: 6.375 kB / 407 MB, free: 13.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002823/0.3496, allocations: 1.467 MB / 408.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.097e-05/0.3497, allocations: 36.38 kB / 408.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.3497, allocations: 2.688 kB / 408.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.7e-05/0.3498, allocations: 15.77 kB / 408.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005422/0.3503, allocations: 169.3 kB / 408.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.874e-05/0.3503, allocations: 10.45 kB / 408.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00052/0.3509, allocations: 54.7 kB / 408.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009863/0.3519, allocations: 0.8195 MB / 409.6 MB, free: 12.46 MB / 334.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.001312/0.3532, allocations: 0.5027 MB / 410.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000333/0.3535, allocations: 71.16 kB / 410.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001964/0.3537, allocations: 82.88 kB / 410.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.426e-05/0.3538, allocations: 3.984 kB / 410.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3538, allocations: 0 / 410.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/0.3548, allocations: 444.1 kB / 410.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003609/0.3552, allocations: 44 kB / 410.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004742/0.3557, allocations: 43.91 kB / 410.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006229/0.3563, allocations: 200.7 kB / 410.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003983/0.3603, allocations: 1.529 MB / 412.5 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003657/0.364, allocations: 1.453 MB / 413.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00136/0.3654, allocations: 0.4996 MB / 414.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006355/0.366, allocations: 335.1 kB / 414.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of Backend: time 6.71e-07/0.366, allocations: 0 / 414.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003363/0.3694, allocations: 0.8957 MB / 415.6 MB, free: 6.301 MB / 334.1 MB Notification: Performance of SimCode: time 0.00728/0.3767, allocations: 2.24 MB / 417.9 MB, free: 4.004 MB / 334.1 MB Notification: Performance of Templates: time 0.05982/0.4366, allocations: 34.94 MB / 452.8 MB, free: 15.64 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Counter3.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Counter3.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Counter3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Counter3.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Counter3.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Counter3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Counter3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Counter3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/Counter3/Counter3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Counter3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches