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.001523/0.001523, allocations: 114.8 kB / 18.46 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001836/0.001836, allocations: 204 kB / 19.41 MB, free: 3.645 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.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.89 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2246/0.2259, allocations: 50.54 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.Counter3): time 0.003849/0.2298, allocations: 3.591 MB / 413.5 MB, free: 14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00289/0.2327, allocations: 1.707 MB / 415.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.2329, allocations: 11.94 kB / 415.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002888/0.2332, allocations: 138.8 kB / 415.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002304/0.2334, allocations: 99.09 kB / 415.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008366/0.2343, allocations: 499.5 kB / 416 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001094/0.2354, allocations: 1.378 MB / 417.3 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006495/0.2361, allocations: 0.5419 MB / 417.9 MB, free: 9.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001455/0.2375, allocations: 1.591 MB / 419.5 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007911/0.2383, allocations: 0.7122 MB / 420.2 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003164/0.2386, allocations: 156 kB / 420.3 MB, free: 7.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003058/0.239, allocations: 156 kB / 420.5 MB, free: 7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004634/0.2394, allocations: 442.6 kB / 420.9 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006276/0.2401, allocations: 0.6103 MB / 421.5 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002161/0.2422, allocations: 3.009 MB / 424.5 MB, free: 2.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.2422, allocations: 0 / 424.5 MB, free: 2.938 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2423, allocations: 0 / 424.5 MB, free: 2.938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.652e-05/0.2423, allocations: 0 / 424.5 MB, free: 2.938 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.002295/0.2446, allocations: 1.707 MB / 426.3 MB, free: 1.168 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.2446, allocations: 8.031 kB / 426.3 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002535/0.2449, allocations: 124.2 kB / 426.4 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009304/0.2458, allocations: 0.6891 MB / 427.1 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.734e-05/0.2459, allocations: 74.38 kB / 427.1 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002217/0.2461, allocations: 88.38 kB / 427.2 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002194/0.2483, allocations: 1.327 MB / 428.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.2484, allocations: 0 / 428.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001563/0.2485, allocations: 40 kB / 428.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/0.2485, allocations: 24 kB / 428.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002053/0.2506, allocations: 1.07 MB / 429.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004798/0.2554, allocations: 3.156 MB / 432.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002162/0.2576, allocations: 1.096 MB / 433.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008235/0.2584, allocations: 443.6 kB / 434.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001927/0.2586, allocations: 12.98 kB / 434.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001309/0.2599, allocations: 0.8324 MB / 435.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of pre-optimization done (n=94): time 2.835e-06/0.26, allocations: 0 / 435.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.003206/0.2632, allocations: 1.65 MB / 436.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.2632, allocations: 90.05 kB / 437 MB, free: 6.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006394/0.2639, allocations: 0.5483 MB / 437.5 MB, free: 5.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001478/0.264, allocations: 61.7 kB / 437.6 MB, free: 5.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.2642, allocations: 337.7 kB / 437.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002652/0.2645, allocations: 230.3 kB / 438.1 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006711/0.2652, allocations: 0.4908 MB / 438.6 MB, free: 4.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.2653, allocations: 370.7 kB / 439 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009233/0.2663, allocations: 470.4 kB / 439.4 MB, free: 3.793 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009936/0.2673, allocations: 0.5921 MB / 440 MB, free: 3.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002013/0.2693, allocations: 1.169 MB / 441.2 MB, free: 1.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/0.2693, allocations: 0 / 441.2 MB, free: 1.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002627/0.2719, allocations: 1.479 MB / 442.7 MB, free: 468 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.713e-05/0.272, allocations: 29.7 kB / 442.7 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.272, allocations: 8.031 kB / 442.7 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.272, allocations: 11.94 kB / 442.7 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003457/0.2724, allocations: 167.7 kB / 442.9 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.2724, allocations: 8 kB / 442.9 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004212/0.2728, allocations: 59.77 kB / 443 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007043/0.2736, allocations: 0.8171 MB / 443.8 MB, free: 15.36 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.000728/0.2743, allocations: 0.5127 MB / 444.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001816/0.2745, allocations: 67.58 kB / 444.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001283/0.2746, allocations: 78.89 kB / 444.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.2746, allocations: 3.984 kB / 444.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.2746, allocations: 4 kB / 444.4 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006382/0.2753, allocations: 452.3 kB / 444.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002527/0.2755, allocations: 44 kB / 444.9 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003494/0.2759, allocations: 31.98 kB / 444.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004292/0.2763, allocations: 192.8 kB / 445.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002617/0.279, allocations: 1.533 MB / 446.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002355/0.2813, allocations: 1.461 MB / 448.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000873/0.2822, allocations: 499.7 kB / 448.6 MB, free: 10.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003465/0.2826, allocations: 339.1 kB / 449 MB, free: 10.09 MB / 366.1 MB Notification: Performance of Backend: time 2.91e-07/0.2826, allocations: 0 / 449 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.2845, allocations: 0.903 MB / 449.9 MB, free: 9.168 MB / 366.1 MB Notification: Performance of SimCode: time 0.00356/0.2881, allocations: 2.266 MB / 452.1 MB, free: 6.852 MB / 366.1 MB Notification: Performance of Templates: time 0.04097/0.3291, allocations: 34.66 MB / 486.8 MB, free: 2.832 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