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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001836/0.001836, allocations: 114.2 kB / 19.04 MB, free: 3.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002258/0.002258, allocations: 184.5 kB / 22.21 MB, free: 116 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.547/1.547, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] 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=5094,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=5094,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 47.92 kB / 368.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2688, allocations: 52.14 MB / 420.9 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003682/0.2725, allocations: 2.159 MB / 423 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002863/0.2753, allocations: 1.126 MB / 424.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.2755, allocations: 7.938 kB / 424.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002256/0.2757, allocations: 47.58 kB / 424.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.2758, allocations: 39.64 kB / 424.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006221/0.2765, allocations: 179.6 kB / 424.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005809/0.277, allocations: 471.6 kB / 424.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.2773, allocations: 112.9 kB / 425 MB, free: 11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001066/0.2784, allocations: 0.8382 MB / 425.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004216/0.2788, allocations: 267 kB / 426.1 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001075/0.2789, allocations: 40 kB / 426.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.207e-05/0.279, allocations: 44 kB / 426.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002102/0.2792, allocations: 155.5 kB / 426.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002585/0.2795, allocations: 214.8 kB / 426.5 MB, free: 9.449 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001057/0.2805, allocations: 0.9277 MB / 427.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.2805, allocations: 0 / 427.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2805, allocations: 4 kB / 427.5 MB, free: 8.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.2805, allocations: 3.938 kB / 427.5 MB, free: 8.516 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.001412/0.2819, allocations: 0.8797 MB / 428.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.282, allocations: 12.03 kB / 428.4 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.2821, allocations: 52.64 kB / 428.4 MB, free: 7.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005376/0.2827, allocations: 351.6 kB / 428.8 MB, free: 7.133 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4e-05/0.2827, allocations: 25.03 kB / 428.8 MB, free: 7.109 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.652e-05/0.2828, allocations: 32.38 kB / 428.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009551/0.2837, allocations: 498.1 kB / 429.3 MB, free: 6.582 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.2838, allocations: 3.984 kB / 429.3 MB, free: 6.578 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.894e-05/0.2838, allocations: 16 kB / 429.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.2838, allocations: 8 kB / 429.3 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008705/0.2847, allocations: 374.4 kB / 429.7 MB, free: 6.191 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001965/0.2867, allocations: 1.12 MB / 430.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.2878, allocations: 419.5 kB / 431.2 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003526/0.2882, allocations: 165.3 kB / 431.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.085e-05/0.2882, allocations: 4.281 kB / 431.4 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007477/0.289, allocations: 355 kB / 431.7 MB, free: 4.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 3.216e-06/0.289, allocations: 0 / 431.7 MB, free: 4.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001594/0.2906, allocations: 0.7278 MB / 432.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.771e-05/0.2907, allocations: 106.8 kB / 432.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004604/0.2911, allocations: 310.5 kB / 432.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.207e-05/0.2912, allocations: 41.7 kB / 432.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.2914, allocations: 185 kB / 433.1 MB, free: 2.656 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001989/0.2916, allocations: 79.39 kB / 433.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003616/0.292, allocations: 182 kB / 433.3 MB, free: 2.395 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002211/0.2922, allocations: 346.7 kB / 433.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003933/0.2926, allocations: 180.8 kB / 433.9 MB, free: 1.871 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/0.293, allocations: 236.5 kB / 434.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008509/0.2938, allocations: 0.5223 MB / 434.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.2938, allocations: 0 / 434.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001341/0.2952, allocations: 0.6411 MB / 435.3 MB, free: 408 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.434e-05/0.2953, allocations: 63.41 kB / 435.3 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.2953, allocations: 0 / 435.3 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/0.2953, allocations: 4 kB / 435.3 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.2955, allocations: 63.83 kB / 435.4 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.2955, allocations: 4 kB / 435.4 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000217/0.2957, allocations: 31.88 kB / 435.4 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003577/0.2961, allocations: 283.7 kB / 435.7 MB, free: 15.94 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.0004829/0.2966, allocations: 293 kB / 436 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.322e-05/0.2966, allocations: 31.81 kB / 436 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.325e-05/0.2967, allocations: 42.89 kB / 436.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.2967, allocations: 4 kB / 436.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.2967, allocations: 0 / 436.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.2967, allocations: 4 kB / 436.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006376/0.2974, allocations: 485.2 kB / 436.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2974, allocations: 0 / 436.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.2975, allocations: 51.91 kB / 436.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.2975, allocations: 0 / 436.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.722e-05/0.2976, allocations: 51.97 kB / 436.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2976, allocations: 0 / 436.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2976, allocations: 0 / 436.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.2986, allocations: 0.617 MB / 437.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002724/0.2989, allocations: 196.8 kB / 437.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.756e-05/0.299, allocations: 12 kB / 437.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/0.2992, allocations: 16 kB / 437.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.2994, allocations: 87.91 kB / 437.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000281/0.2997, allocations: 283.7 kB / 437.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002106/0.2999, allocations: 205.9 kB / 438 MB, free: 13.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2999, allocations: 0 / 438 MB, free: 13.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003955/0.3003, allocations: 99.89 kB / 438.1 MB, free: 13.38 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.0002848/0.3006, allocations: 142.3 kB / 438.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.3017, allocations: 0.5401 MB / 438.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3017, allocations: 8.062 kB / 438.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005988/0.3023, allocations: 338.6 kB / 439.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.3036, allocations: 345.8 kB / 439.5 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.3049, allocations: 0.7236 MB / 440.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004856/0.3054, allocations: 0.8072 MB / 441 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001514/0.3069, allocations: 0.7471 MB / 441.8 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007019/0.3076, allocations: 262.8 kB / 442 MB, free: 9.414 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3076, allocations: 0 / 442 MB, free: 9.414 MB / 350.1 MB Notification: Performance of Templates: time 0.01861/0.3262, allocations: 10.99 MB / 453 MB, free: 14.28 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.867153378203511]