Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.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.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001247/0.001247, allocations: 112.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 212 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 63.89 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2523, allocations: 50.54 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003603/0.256, allocations: 2.144 MB / 412.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002553/0.2585, allocations: 1.15 MB / 413.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002001/0.2588, allocations: 7.938 kB / 413.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002311/0.259, allocations: 47.56 kB / 413.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001649/0.2592, allocations: 39.66 kB / 413.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00058/0.2598, allocations: 175.7 kB / 413.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005904/0.2604, allocations: 463.6 kB / 413.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003073/0.2607, allocations: 160.9 kB / 414.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001033/0.2617, allocations: 0.8344 MB / 414.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003957/0.2621, allocations: 259 kB / 415.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001461/0.2623, allocations: 40 kB / 415.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.2624, allocations: 44 kB / 415.3 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001808/0.2626, allocations: 143.5 kB / 415.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002744/0.2629, allocations: 222.8 kB / 415.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000844/0.2638, allocations: 0.9306 MB / 416.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2638, allocations: 0 / 416.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2638, allocations: 0 / 416.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.266e-05/0.2638, allocations: 0 / 416.6 MB, free: 10.95 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.00166/0.2655, allocations: 0.8734 MB / 417.4 MB, free: 10.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.2655, allocations: 12.03 kB / 417.4 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001786/0.2657, allocations: 44.47 kB / 417.5 MB, free: 9.961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004799/0.2662, allocations: 355.4 kB / 417.8 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.826e-05/0.2662, allocations: 25.03 kB / 417.9 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.741e-05/0.2663, allocations: 36.31 kB / 417.9 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009825/0.2673, allocations: 494.1 kB / 418.4 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.2674, allocations: 0 / 418.4 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.718e-05/0.2674, allocations: 16 kB / 418.4 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.2674, allocations: 8 kB / 418.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007499/0.2682, allocations: 374.3 kB / 418.8 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.2701, allocations: 1.112 MB / 419.9 MB, free: 7.473 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.2712, allocations: 435.5 kB / 420.3 MB, free: 7.039 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00035/0.2716, allocations: 177.3 kB / 420.5 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.195e-05/0.2717, allocations: 8.281 kB / 420.5 MB, free: 6.855 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006207/0.2723, allocations: 340.1 kB / 420.8 MB, free: 6.512 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.124e-06/0.2723, allocations: 0 / 420.8 MB, free: 6.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001388/0.2737, allocations: 0.7265 MB / 421.5 MB, free: 5.766 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.461e-05/0.2738, allocations: 118.8 kB / 421.7 MB, free: 5.625 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003287/0.2741, allocations: 306.4 kB / 422 MB, free: 5.316 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.166e-05/0.2742, allocations: 37.7 kB / 422 MB, free: 5.273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.2743, allocations: 192.6 kB / 422.2 MB, free: 5.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.2745, allocations: 79 kB / 422.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002917/0.2748, allocations: 182.1 kB / 422.4 MB, free: 4.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.2749, allocations: 346.7 kB / 422.8 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003744/0.2753, allocations: 180.8 kB / 422.9 MB, free: 4.297 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000385/0.2757, allocations: 236.5 kB / 423.2 MB, free: 4.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000794/0.2765, allocations: 0.5167 MB / 423.7 MB, free: 3.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.2765, allocations: 4 kB / 423.7 MB, free: 3.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001115/0.2776, allocations: 0.6487 MB / 424.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.234e-05/0.2777, allocations: 63.39 kB / 424.4 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.2777, allocations: 4 kB / 424.4 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.2777, allocations: 3.938 kB / 424.4 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.2779, allocations: 59.91 kB / 424.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.2779, allocations: 4 kB / 424.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/0.2781, allocations: 31.86 kB / 424.5 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002549/0.2784, allocations: 283.7 kB / 424.8 MB, free: 2.371 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition1,$PRE.FF.And2.auxiliary_n,FF.RS2.TD1.x_delayed,$PRE.FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.x[2],FF.RS2.Nor2.x[1],$PRE.FF.And4.auxiliary_n,FF.RS1.TD1.x_delayed,$PRE.FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.x[2],FF.RS1.Nor2.x[1],$PRE.FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And4.x[1],FF.And3.auxiliary_n,FF.And3.x[2],$PRE.FF.And1.auxiliary_n,FF.And1.y,FF.RS2.TD1.x,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary[2],K.y,J.y,CLK.t_i,$PRE.CLK.t_i,FF.Not1.auxiliary,$PRE.FF.And3.auxiliary_n,FF.And3.y,FF.And2.auxiliary_n,FF.And2.auxiliary[2],FF.And2.x[1],FF.And1.auxiliary_n,FF.And1.auxiliary[2],FF.And1.x[1],FF.RS1.TD1.x,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * 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.0003354/0.2787, allocations: 289 kB / 425.1 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.159e-05/0.2788, allocations: 31.62 kB / 425.1 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.086e-05/0.2789, allocations: 38.95 kB / 425.1 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.2789, allocations: 11.94 kB / 425.2 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.2789, allocations: 0 / 425.2 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.2789, allocations: 0 / 425.2 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005341/0.2795, allocations: 481.2 kB / 425.6 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2795, allocations: 0 / 425.6 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.2796, allocations: 51.91 kB / 425.7 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.2796, allocations: 4 kB / 425.7 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.42e-05/0.2797, allocations: 43.97 kB / 425.7 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.86e-06/0.2797, allocations: 7.938 kB / 425.7 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2797, allocations: 0 / 425.7 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009774/0.2807, allocations: 0.6062 MB / 426.3 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002334/0.2809, allocations: 200.6 kB / 426.5 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.281, allocations: 20 kB / 426.6 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.2812, allocations: 15.98 kB / 426.6 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/0.2814, allocations: 79.92 kB / 426.6 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002423/0.2816, allocations: 283.7 kB / 426.9 MB, free: 116 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002024/0.2818, allocations: 209.9 kB / 427.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2818, allocations: 0 / 427.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005276/0.2824, allocations: 99.84 kB / 427.2 MB, free: 15.81 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition1,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[1],FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[1],FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.x[1],FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,K.y,J.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00021/0.2826, allocations: 133.8 kB / 427.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009655/0.2836, allocations: 0.561 MB / 427.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.2836, allocations: 0 / 427.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004779/0.2841, allocations: 354.5 kB / 428.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/0.2854, allocations: 338.3 kB / 428.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.2867, allocations: 0.7494 MB / 429.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004294/0.2871, allocations: 0.815 MB / 430.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/0.2881, allocations: 366.5 kB / 430.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2882, allocations: 0 / 430.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of Templates: time 0.01021/0.2984, allocations: 8.321 MB / 438.8 MB, free: 3.758 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches