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.00114/0.00114, allocations: 109.7 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001327, allocations: 206.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 247.6 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.91 kB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2715, allocations: 50.55 MB / 409.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003375/0.2749, allocations: 2.147 MB / 412.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002647/0.2776, allocations: 1.154 MB / 413.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002156/0.2778, allocations: 7.938 kB / 413.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000235/0.278, allocations: 43.58 kB / 413.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001649/0.2782, allocations: 39.66 kB / 413.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005691/0.2788, allocations: 179.7 kB / 413.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005616/0.2794, allocations: 455.6 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003001/0.2797, allocations: 160.9 kB / 414.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008581/0.2806, allocations: 0.8421 MB / 414.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000374/0.281, allocations: 255 kB / 415.2 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.2811, allocations: 44 kB / 415.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.57e-05/0.2812, allocations: 40 kB / 415.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001622/0.2813, allocations: 147.5 kB / 415.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002323/0.2816, allocations: 218.8 kB / 415.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007074/0.2823, allocations: 0.9229 MB / 416.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.2823, allocations: 0 / 416.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.839e-06/0.2823, allocations: 4 kB / 416.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.984e-05/0.2823, allocations: 3.938 kB / 416.6 MB, free: 10.98 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.001384/0.2837, allocations: 0.8695 MB / 417.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.2838, allocations: 8.031 kB / 417.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.2839, allocations: 44.47 kB / 417.5 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005549/0.2845, allocations: 355.3 kB / 417.8 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.2845, allocations: 36.97 kB / 417.9 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.944e-05/0.2846, allocations: 32.38 kB / 417.9 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008555/0.2855, allocations: 494.1 kB / 418.4 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.2855, allocations: 0 / 418.4 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.964e-05/0.2856, allocations: 16 kB / 418.4 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.2856, allocations: 8 kB / 418.4 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007217/0.2863, allocations: 382.3 kB / 418.8 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001886/0.2882, allocations: 1.108 MB / 419.9 MB, free: 7.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.2892, allocations: 439.5 kB / 420.3 MB, free: 7.062 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003415/0.2896, allocations: 177.3 kB / 420.5 MB, free: 6.887 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.717e-05/0.2897, allocations: 4.281 kB / 420.5 MB, free: 6.883 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000593/0.2903, allocations: 347.2 kB / 420.8 MB, free: 6.531 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 1.723e-06/0.2903, allocations: 0 / 420.8 MB, free: 6.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001331/0.2916, allocations: 0.7265 MB / 421.6 MB, free: 5.785 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.875e-05/0.2917, allocations: 114.8 kB / 421.7 MB, free: 5.648 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002633/0.292, allocations: 302.4 kB / 422 MB, free: 5.344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.824e-05/0.292, allocations: 41.7 kB / 422 MB, free: 5.297 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.2921, allocations: 188.6 kB / 422.2 MB, free: 5.109 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.688e-05/0.2923, allocations: 83.05 kB / 422.3 MB, free: 5.027 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002542/0.2925, allocations: 178.1 kB / 422.4 MB, free: 4.848 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.2926, allocations: 342.8 kB / 422.8 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.293, allocations: 180.8 kB / 422.9 MB, free: 4.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003792/0.2934, allocations: 240.5 kB / 423.2 MB, free: 4.078 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000757/0.2942, allocations: 0.5165 MB / 423.7 MB, free: 3.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.2942, allocations: 0 / 423.7 MB, free: 3.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001035/0.2952, allocations: 0.6449 MB / 424.3 MB, free: 2.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.904e-05/0.2953, allocations: 67.33 kB / 424.4 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2953, allocations: 0 / 424.4 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.2953, allocations: 4 kB / 424.4 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.2955, allocations: 59.91 kB / 424.5 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.2955, allocations: 0 / 424.5 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001746/0.2957, allocations: 27.83 kB / 424.5 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002224/0.2959, allocations: 287.7 kB / 424.8 MB, free: 2.41 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.0002915/0.2962, allocations: 289.1 kB / 425.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.068e-05/0.2963, allocations: 31.62 kB / 425.1 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.43e-05/0.2963, allocations: 38.95 kB / 425.1 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2963, allocations: 4 kB / 425.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.2964, allocations: 0 / 425.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.2964, allocations: 11.92 kB / 425.1 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004852/0.2969, allocations: 473.2 kB / 425.6 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.2969, allocations: 7.938 kB / 425.6 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.297, allocations: 55.91 kB / 425.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.297, allocations: 0 / 425.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.342e-05/0.2971, allocations: 47.97 kB / 425.7 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.2971, allocations: 0 / 425.7 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2971, allocations: 0 / 425.7 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009366/0.298, allocations: 0.6139 MB / 426.3 MB, free: 0.75 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003187/0.2984, allocations: 204.6 kB / 426.5 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.27e-05/0.2984, allocations: 12 kB / 426.5 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.2986, allocations: 19.98 kB / 426.6 MB, free: 0.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/0.2988, allocations: 79.92 kB / 426.6 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002084/0.299, allocations: 283.7 kB / 426.9 MB, free: 148 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001773/0.2992, allocations: 205.9 kB / 427.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2992, allocations: 0 / 427.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000363/0.2996, allocations: 99.84 kB / 427.2 MB, free: 15.84 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.0001736/0.2997, allocations: 141.8 kB / 427.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009018/0.3007, allocations: 0.5601 MB / 427.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3007, allocations: 4.062 kB / 427.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004543/0.3011, allocations: 354.5 kB / 428.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.3024, allocations: 324.5 kB / 428.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.3035, allocations: 0.7533 MB / 429.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.3039, allocations: 0.815 MB / 430.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009338/0.3048, allocations: 366.5 kB / 430.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3048, allocations: 0 / 430.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of Templates: time 0.009179/0.314, allocations: 8.359 MB / 438.9 MB, free: 3.754 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