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.001126/0.001126, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 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.001602/0.001602, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 18.57 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 0.9484/0.9484, allocations: 177 MB / 204.8 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] 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 1.974e-06/1.974e-06, allocations: 0 / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.656e-05/1.854e-05, allocations: 2.312 kB / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00256/0.002578, allocations: 2.066 MB / 275 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.004594, allocations: 1.115 MB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.004699, allocations: 7.938 kB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.004884, allocations: 51.5 kB / 276.1 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001133/0.004997, allocations: 43.59 kB / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005536/0.005551, allocations: 191.5 kB / 276.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000475/0.006026, allocations: 475.5 kB / 276.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.006237, allocations: 109.9 kB / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008604/0.007097, allocations: 0.9087 MB / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002802/0.007378, allocations: 243.2 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.92e-05/0.007467, allocations: 40 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.833e-05/0.007545, allocations: 44 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001582/0.007703, allocations: 151.4 kB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.00787, allocations: 147.5 kB / 278.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006306/0.008501, allocations: 0.7201 MB / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.008503, allocations: 0 / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.22e-07/0.008504, allocations: 0 / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.00851, allocations: 4 kB / 279.2 MB, free: 11.14 MB / 266.7 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.0009918/0.009502, allocations: 0.9122 MB / 280.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.009536, allocations: 11.98 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001647/0.009701, allocations: 84.64 kB / 280.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003476/0.01005, allocations: 287.4 kB / 280.5 MB, free: 9.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.295e-05/0.01008, allocations: 25.03 kB / 280.5 MB, free: 9.746 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.357e-05/0.01015, allocations: 40.36 kB / 280.5 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006471/0.0108, allocations: 446.3 kB / 281 MB, free: 9.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.01081, allocations: 4.172 kB / 281 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.538e-05/0.01087, allocations: 20.38 kB / 281 MB, free: 9.227 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.01088, allocations: 11.94 kB / 281 MB, free: 9.215 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004269/0.01131, allocations: 271.2 kB / 281.3 MB, free: 8.934 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001324/0.01263, allocations: 0.9607 MB / 282.2 MB, free: 7.934 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006557/0.01329, allocations: 370 kB / 282.6 MB, free: 7.551 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.0135, allocations: 171.5 kB / 282.8 MB, free: 7.367 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.094e-05/0.01355, allocations: 8.281 kB / 282.8 MB, free: 7.359 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000399/0.01394, allocations: 336.9 kB / 283.1 MB, free: 7.004 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 2.194e-06/0.01395, allocations: 0 / 283.1 MB, free: 7.004 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0009936/0.01494, allocations: 0.6875 MB / 283.8 MB, free: 6.273 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.01499, allocations: 114.8 kB / 283.9 MB, free: 6.137 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.01525, allocations: 336.2 kB / 284.2 MB, free: 5.793 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.968e-05/0.01531, allocations: 41.7 kB / 284.3 MB, free: 5.746 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.01543, allocations: 227.7 kB / 284.5 MB, free: 5.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.01553, allocations: 95.34 kB / 284.6 MB, free: 5.426 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002425/0.01577, allocations: 195.7 kB / 284.8 MB, free: 5.227 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.01592, allocations: 0.5079 MB / 285.3 MB, free: 4.707 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002286/0.01615, allocations: 168.3 kB / 285.4 MB, free: 4.527 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002609/0.01641, allocations: 234.8 kB / 285.7 MB, free: 4.266 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004911/0.0169, allocations: 413.1 kB / 286.1 MB, free: 3.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.0169, allocations: 3.938 kB / 286.1 MB, free: 3.816 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007966/0.0177, allocations: 0.5859 MB / 286.7 MB, free: 3.199 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.57e-05/0.01774, allocations: 70.52 kB / 286.7 MB, free: 3.121 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.01775, allocations: 0 / 286.7 MB, free: 3.121 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.01776, allocations: 4 kB / 286.7 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.01788, allocations: 59.91 kB / 286.8 MB, free: 3.059 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.01789, allocations: 3.938 kB / 286.8 MB, free: 3.055 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.01803, allocations: 31.94 kB / 286.8 MB, free: 3.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002338/0.01827, allocations: 283.7 kB / 287.1 MB, free: 2.746 MB / 266.7 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.0002297/0.01849, allocations: 271.9 kB / 287.4 MB, free: 2.457 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.0186, allocations: 47.81 kB / 287.4 MB, free: 2.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.59e-05/0.01864, allocations: 34.95 kB / 287.5 MB, free: 2.379 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.01865, allocations: 4 kB / 287.5 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.01865, allocations: 0 / 287.5 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.01865, allocations: 4 kB / 287.5 MB, free: 2.371 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003675/0.01902, allocations: 348.2 kB / 287.8 MB, free: 1.996 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.01902, allocations: 3.938 kB / 287.8 MB, free: 1.992 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.268e-05/0.01911, allocations: 51.91 kB / 287.9 MB, free: 1.941 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.01911, allocations: 4 kB / 287.9 MB, free: 1.938 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.214e-05/0.01917, allocations: 47.97 kB / 287.9 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.01917, allocations: 0 / 287.9 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.01917, allocations: 4 kB / 287.9 MB, free: 1.887 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007387/0.01991, allocations: 0.5741 MB / 288.5 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001803/0.02009, allocations: 123.6 kB / 288.6 MB, free: 1.145 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.983e-05/0.02017, allocations: 23.98 kB / 288.6 MB, free: 1.121 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.02028, allocations: 19.94 kB / 288.7 MB, free: 1.102 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001887/0.02047, allocations: 99.88 kB / 288.8 MB, free: 1.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002247/0.0207, allocations: 287.7 kB / 289 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001347/0.02083, allocations: 201.1 kB / 289.2 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02083, allocations: 0 / 289.2 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003452/0.02118, allocations: 103.8 kB / 289.3 MB, free: 440 kB / 266.7 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.0001364/0.02131, allocations: 141.8 kB / 289.5 MB, free: 288 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006454/0.02196, allocations: 0.5448 MB / 290 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.81e-07/0.02196, allocations: 0 / 290 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003434/0.0223, allocations: 361.9 kB / 290.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008843/0.02319, allocations: 379 kB / 290.7 MB, free: 14.94 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008809/0.02407, allocations: 0.6872 MB / 291.4 MB, free: 14.21 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.131e-05/0.02414, allocations: 109.1 kB / 291.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.001163/0.0253, allocations: 0.7354 MB / 292.3 MB, free: 13.35 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005353/0.02584, allocations: 275.9 kB / 292.5 MB, free: 13.08 MB / 282.7 MB Notification: Performance of SimCode: time 8.71e-07/0.02584, allocations: 0 / 292.5 MB, free: 13.08 MB / 282.7 MB Notification: Performance of Templates: time 0.01118/0.03702, allocations: 11.96 MB / 304.5 MB, free: 1.023 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8408650048077106]