Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 209.8 kB / 24.49 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.414/1.414, allocations: 230.6 MB / 258.3 MB, free: 8.25 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5094,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5094,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 51.92 kB / 379 MB, free: 2.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2539, allocations: 53.38 MB / 432.4 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003328/0.2572, allocations: 2.164 MB / 434.6 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002458/0.2596, allocations: 1.173 MB / 435.7 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.2598, allocations: 7.938 kB / 435.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001827/0.2599, allocations: 51.56 kB / 435.8 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001176/0.2601, allocations: 39.66 kB / 435.8 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005433/0.2606, allocations: 179.7 kB / 436 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005536/0.2612, allocations: 471.6 kB / 436.5 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.2614, allocations: 117.3 kB / 436.6 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009373/0.2623, allocations: 0.8383 MB / 437.4 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004033/0.2627, allocations: 270.9 kB / 437.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.575e-05/0.2628, allocations: 48 kB / 437.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.841e-05/0.2629, allocations: 40 kB / 437.8 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000202/0.2631, allocations: 147.5 kB / 437.9 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002574/0.2634, allocations: 226.7 kB / 438.1 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008789/0.2643, allocations: 0.9277 MB / 439.1 MB, free: 292 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.2643, allocations: 0 / 439.1 MB, free: 292 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2643, allocations: 0 / 439.1 MB, free: 292 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.2643, allocations: 0 / 439.1 MB, free: 292 kB / 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.001256/0.2655, allocations: 0.8044 MB / 439.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.2656, allocations: 12.03 kB / 439.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.2657, allocations: 48.66 kB / 439.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005134/0.2662, allocations: 285.3 kB / 440.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.2662, allocations: 25.03 kB / 440.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.698e-05/0.2663, allocations: 36.38 kB / 440.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008923/0.2672, allocations: 494 kB / 440.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.2672, allocations: 0 / 440.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.701e-05/0.2673, allocations: 12 kB / 440.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.639e-06/0.2673, allocations: 8 kB / 440.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007673/0.2681, allocations: 382.3 kB / 441.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001925/0.27, allocations: 1.074 MB / 442.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.271, allocations: 424.4 kB / 442.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003395/0.2714, allocations: 165.3 kB / 442.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.204e-05/0.2714, allocations: 12.2 kB / 442.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000614/0.2721, allocations: 339.3 kB / 443.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.094e-06/0.2721, allocations: 0 / 443.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001458/0.2735, allocations: 0.7276 MB / 443.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.558e-05/0.2736, allocations: 110.8 kB / 444 MB, free: 11.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003429/0.2739, allocations: 305.7 kB / 444.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.613e-05/0.274, allocations: 45.64 kB / 444.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.2742, allocations: 184.9 kB / 444.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.2743, allocations: 79.44 kB / 444.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002685/0.2746, allocations: 186 kB / 444.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.2747, allocations: 346.8 kB / 445.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003774/0.2751, allocations: 180.8 kB / 445.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004138/0.2755, allocations: 236.5 kB / 445.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00086/0.2764, allocations: 0.5214 MB / 446 MB, free: 9.059 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2764, allocations: 3.938 kB / 446 MB, free: 9.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001141/0.2775, allocations: 0.641 MB / 446.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.166e-05/0.2776, allocations: 63.41 kB / 446.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.2776, allocations: 4 kB / 446.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.2776, allocations: 0 / 446.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.2778, allocations: 59.89 kB / 446.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.739e-06/0.2778, allocations: 8.031 kB / 446.8 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/0.278, allocations: 31.88 kB / 446.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002914/0.2783, allocations: 287.7 kB / 447.1 MB, free: 7.938 MB / 350.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.0003796/0.2787, allocations: 285.1 kB / 447.4 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.451e-05/0.2787, allocations: 35.75 kB / 447.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.984e-05/0.2788, allocations: 38.95 kB / 447.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.2788, allocations: 4 kB / 447.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.2788, allocations: 0 / 447.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.2788, allocations: 0 / 447.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005841/0.2794, allocations: 456.3 kB / 447.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2794, allocations: 0 / 447.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.2795, allocations: 47.97 kB / 448 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.2795, allocations: 0 / 448 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.362e-05/0.2796, allocations: 51.91 kB / 448 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.2796, allocations: 4 kB / 448 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2796, allocations: 0 / 448 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.2807, allocations: 0.6052 MB / 448.6 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003288/0.281, allocations: 127.7 kB / 448.7 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.83e-05/0.2811, allocations: 12 kB / 448.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.2813, allocations: 19.92 kB / 448.8 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002079/0.2815, allocations: 91.91 kB / 448.9 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002837/0.2817, allocations: 283.7 kB / 449.1 MB, free: 5.809 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002135/0.282, allocations: 205.1 kB / 449.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.282, allocations: 0 / 449.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004065/0.2824, allocations: 99.84 kB / 449.4 MB, free: 5.512 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.0001823/0.2826, allocations: 137.8 kB / 449.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001001/0.2836, allocations: 0.5388 MB / 450.1 MB, free: 4.805 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2836, allocations: 0 / 450.1 MB, free: 4.805 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005266/0.2841, allocations: 346.4 kB / 450.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.2853, allocations: 338.9 kB / 450.8 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.2867, allocations: 0.7558 MB / 451.5 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004609/0.2871, allocations: 0.8072 MB / 452.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001061/0.2882, allocations: 358.5 kB / 452.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of SimCode: time 6.52e-07/0.2882, allocations: 4 kB / 452.7 MB, free: 2.164 MB / 350.1 MB Notification: Performance of Templates: time 0.01163/0.2998, allocations: 8.288 MB / 461 MB, free: 9.531 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.864298676839098]