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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001434/0.001434, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001506, allocations: 209.9 kB / 24.48 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 230.5 MB / 258.2 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] 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=5094,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=5094,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 63.89 kB / 379 MB, free: 2.328 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2549, allocations: 53.41 MB / 432.4 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003421/0.2584, allocations: 1.989 MB / 434.4 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002515/0.2609, allocations: 1.111 MB / 435.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.261, allocations: 7.938 kB / 435.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.2612, allocations: 47.56 kB / 435.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.2613, allocations: 43.58 kB / 435.6 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005463/0.2619, allocations: 175.7 kB / 435.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005629/0.2624, allocations: 471.5 kB / 436.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000241/0.2627, allocations: 113.3 kB / 436.3 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009666/0.2636, allocations: 0.8383 MB / 437.2 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003763/0.264, allocations: 255 kB / 437.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001381/0.2642, allocations: 40 kB / 437.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001214/0.2643, allocations: 44 kB / 437.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.2645, allocations: 155.4 kB / 437.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002309/0.2647, allocations: 179 kB / 437.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009104/0.2656, allocations: 0.933 MB / 438.8 MB, free: 144 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2656, allocations: 0 / 438.8 MB, free: 144 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2656, allocations: 0 / 438.8 MB, free: 144 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.2656, allocations: 0 / 438.8 MB, free: 144 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.00147/0.2671, allocations: 0.8083 MB / 439.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.2671, allocations: 15.98 kB / 439.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.2673, allocations: 52.66 kB / 439.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007325/0.2681, allocations: 285.3 kB / 439.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.988e-05/0.2681, allocations: 21.03 kB / 439.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.2683, allocations: 36.38 kB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.2695, allocations: 0.5327 MB / 440.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.2696, allocations: 0 / 440.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.12e-05/0.2697, allocations: 16 kB / 440.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.2697, allocations: 12 kB / 440.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.271, allocations: 425.8 kB / 440.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002637/0.2736, allocations: 0.9496 MB / 441.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001389/0.275, allocations: 475.5 kB / 442.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005745/0.2756, allocations: 224.7 kB / 442.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.834e-05/0.2757, allocations: 4.281 kB / 442.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009316/0.2766, allocations: 402.7 kB / 443 MB, free: 11.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 3.627e-06/0.2766, allocations: 0 / 443 MB, free: 11.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.00211/0.2787, allocations: 0.8396 MB / 443.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.947e-05/0.2788, allocations: 106.8 kB / 443.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004004/0.2792, allocations: 309.7 kB / 444.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.906e-05/0.2793, allocations: 41.64 kB / 444.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.2794, allocations: 184.9 kB / 444.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.2796, allocations: 87.41 kB / 444.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002905/0.2798, allocations: 186 kB / 444.7 MB, free: 9.906 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.28, allocations: 342.8 kB / 445 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004215/0.2804, allocations: 236.2 kB / 445.3 MB, free: 9.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000453/0.2809, allocations: 295.9 kB / 445.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000907/0.2818, allocations: 0.5133 MB / 446.1 MB, free: 8.453 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.2818, allocations: 0 / 446.1 MB, free: 8.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001334/0.2831, allocations: 0.6991 MB / 446.8 MB, free: 7.723 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.044e-05/0.2832, allocations: 63.39 kB / 446.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2832, allocations: 0 / 446.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.2832, allocations: 4 kB / 446.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.2834, allocations: 67.83 kB / 446.9 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.2834, allocations: 4 kB / 446.9 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002151/0.2836, allocations: 27.88 kB / 446.9 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003334/0.2839, allocations: 279.7 kB / 447.2 MB, free: 7.273 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.0003933/0.2843, allocations: 285.1 kB / 447.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.2844, allocations: 31.81 kB / 447.5 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.273e-05/0.2845, allocations: 42.94 kB / 447.6 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.2845, allocations: 4 kB / 447.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.2845, allocations: 4 kB / 447.6 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.2845, allocations: 0 / 447.6 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000491/0.285, allocations: 357 kB / 447.9 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.285, allocations: 0 / 447.9 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.2851, allocations: 47.91 kB / 448 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.2852, allocations: 4 kB / 448 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.556e-05/0.2852, allocations: 43.97 kB / 448 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.091e-06/0.2852, allocations: 8.156 kB / 448 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2852, allocations: 0 / 448 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.2864, allocations: 0.6643 MB / 448.7 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003681/0.2867, allocations: 123.7 kB / 448.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.859e-05/0.2868, allocations: 19.98 kB / 448.8 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.287, allocations: 16 kB / 448.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002233/0.2872, allocations: 87.89 kB / 448.9 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003059/0.2875, allocations: 279.7 kB / 449.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002169/0.2877, allocations: 197.2 kB / 449.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2877, allocations: 0 / 449.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004068/0.2881, allocations: 103.8 kB / 449.5 MB, free: 4.895 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.0001957/0.2883, allocations: 138.5 kB / 449.6 MB, free: 4.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001069/0.2894, allocations: 0.6534 MB / 450.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2894, allocations: 3.938 kB / 450.3 MB, free: 4.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005558/0.29, allocations: 410 kB / 450.7 MB, free: 3.605 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.2912, allocations: 334.5 kB / 451 MB, free: 3.312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.2926, allocations: 0.8143 MB / 451.8 MB, free: 2.453 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002288/0.2928, allocations: 200.2 kB / 452 MB, free: 2.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001066/0.2939, allocations: 362.5 kB / 452.4 MB, free: 1.875 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2939, allocations: 4 kB / 452.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of Templates: time 0.01183/0.3057, allocations: 8.345 MB / 460.7 MB, free: 9.18 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.9510750668123364]