Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.001152/0.001152, allocations: 188.5 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.634/1.634, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001067/0.001067, allocations: 51.92 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.259, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003404/0.2624, allocations: 2.145 MB / 403.5 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002539/0.265, allocations: 1.115 MB / 404.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002406/0.2652, allocations: 0 / 404.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000262/0.2655, allocations: 47.58 kB / 404.7 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002106/0.2658, allocations: 47.56 kB / 404.8 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006434/0.2665, allocations: 171.7 kB / 404.9 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006259/0.2671, allocations: 479.5 kB / 405.4 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003081/0.2674, allocations: 152.9 kB / 405.5 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008852/0.2683, allocations: 0.8383 MB / 406.4 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003905/0.2687, allocations: 259.1 kB / 406.6 MB, free: 3.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001508/0.2689, allocations: 40 kB / 406.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000115/0.269, allocations: 44 kB / 406.7 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002024/0.2692, allocations: 147.5 kB / 406.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002836/0.2695, allocations: 222.8 kB / 407.1 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008008/0.2703, allocations: 0.9228 MB / 408 MB, free: 2.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2703, allocations: 0 / 408 MB, free: 2.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2703, allocations: 0 / 408 MB, free: 2.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.878e-05/0.2704, allocations: 0 / 408 MB, free: 2.242 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001596/0.272, allocations: 0.8696 MB / 408.9 MB, free: 1.316 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.272, allocations: 12.03 kB / 408.9 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.2722, allocations: 48.38 kB / 408.9 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005963/0.2728, allocations: 351.4 kB / 409.3 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.785e-05/0.2728, allocations: 29.03 kB / 409.3 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.2729, allocations: 32.38 kB / 409.3 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009571/0.2739, allocations: 494.1 kB / 409.8 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.2739, allocations: 3.938 kB / 409.8 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-05/0.274, allocations: 16 kB / 409.8 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.274, allocations: 12 kB / 409.8 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007985/0.2748, allocations: 374.4 kB / 410.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001992/0.2768, allocations: 1.116 MB / 411.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.2779, allocations: 435.5 kB / 411.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003286/0.2782, allocations: 181.3 kB / 411.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.587e-05/0.2783, allocations: 4.266 kB / 411.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005346/0.2788, allocations: 347 kB / 412.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.494e-06/0.2788, allocations: 0 / 412.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001352/0.2802, allocations: 0.7238 MB / 413 MB, free: 13.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.411e-05/0.2803, allocations: 118.8 kB / 413.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003017/0.2806, allocations: 306.4 kB / 413.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.864e-05/0.2807, allocations: 37.7 kB / 413.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.2808, allocations: 176.7 kB / 413.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.2809, allocations: 86.98 kB / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002658/0.2812, allocations: 186.1 kB / 413.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.2813, allocations: 342.8 kB / 414.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003688/0.2817, allocations: 180.8 kB / 414.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003907/0.2821, allocations: 232.5 kB / 414.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008062/0.2829, allocations: 0.5223 MB / 415.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.2829, allocations: 0 / 415.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001096/0.284, allocations: 0.6525 MB / 415.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.572e-05/0.2841, allocations: 59.41 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.2841, allocations: 4 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.2841, allocations: 4.031 kB / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.2843, allocations: 59.91 kB / 415.9 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.2843, allocations: 7.984 kB / 415.9 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002145/0.2845, allocations: 27.84 kB / 416 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002439/0.2848, allocations: 283.7 kB / 416.2 MB, free: 9.66 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.0003362/0.2851, allocations: 293.1 kB / 416.5 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.308e-05/0.2852, allocations: 31.62 kB / 416.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.537e-05/0.2853, allocations: 34.95 kB / 416.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.2853, allocations: 4 kB / 416.6 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.2853, allocations: 0 / 416.6 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.2853, allocations: 7.984 kB / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005236/0.2858, allocations: 481.2 kB / 417.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2859, allocations: 4 kB / 417.1 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.286, allocations: 47.91 kB / 417.1 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.286, allocations: 0 / 417.1 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-05/0.2861, allocations: 51.97 kB / 417.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.2861, allocations: 0 / 417.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2861, allocations: 7.938 kB / 417.2 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.2871, allocations: 0.6052 MB / 417.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003344/0.2874, allocations: 192.7 kB / 418 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.2876, allocations: 16 kB / 418 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.2877, allocations: 19.98 kB / 418 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.2879, allocations: 87.91 kB / 418.1 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000236/0.2882, allocations: 279.7 kB / 418.4 MB, free: 7.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001846/0.2884, allocations: 201.9 kB / 418.6 MB, free: 7.203 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2884, allocations: 0 / 418.6 MB, free: 7.203 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004153/0.2888, allocations: 99.84 kB / 418.7 MB, free: 7.105 MB / 334.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.0001896/0.289, allocations: 146.2 kB / 418.8 MB, free: 6.953 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00096/0.29, allocations: 0.5557 MB / 419.4 MB, free: 6.375 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.29, allocations: 0 / 419.4 MB, free: 6.375 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004761/0.2905, allocations: 354.5 kB / 419.7 MB, free: 6.004 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/0.2917, allocations: 333.3 kB / 420 MB, free: 5.707 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/0.293, allocations: 0.7533 MB / 420.8 MB, free: 4.922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.2934, allocations: 0.7994 MB / 421.6 MB, free: 4.098 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001065/0.2945, allocations: 370.5 kB / 421.9 MB, free: 3.734 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2945, allocations: 0 / 421.9 MB, free: 3.734 MB / 334.1 MB Notification: Performance of Templates: time 0.01058/0.305, allocations: 8.351 MB / 430.3 MB, free: 11.04 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches