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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001214/0.001214, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001077/0.001077, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.9 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.3 kB / 306.9 MB, free: 1.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.104, allocations: 50.53 MB / 357.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003831/0.1079, allocations: 2.199 MB / 359.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002676/0.1106, allocations: 1.142 MB / 360.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002216/0.1109, allocations: 7.938 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002398/0.1112, allocations: 35.77 kB / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001692/0.1114, allocations: 27.77 kB / 360.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005331/0.1119, allocations: 155.8 kB / 361 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000753/0.1127, allocations: 423.5 kB / 361.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003061/0.113, allocations: 156.9 kB / 361.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.1141, allocations: 0.8148 MB / 362.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003291/0.1144, allocations: 243 kB / 362.6 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.1145, allocations: 20 kB / 362.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.1147, allocations: 16 kB / 362.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000181/0.1148, allocations: 123.5 kB / 362.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002539/0.1151, allocations: 194.8 kB / 363 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006114/0.1157, allocations: 0.7871 MB / 363.7 MB, free: 8.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1157, allocations: 0 / 363.7 MB, free: 8.172 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1157, allocations: 0 / 363.7 MB, free: 8.172 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.866e-05/0.1158, allocations: 4 kB / 363.7 MB, free: 8.168 MB / 302.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.001575/0.1174, allocations: 0.8726 MB / 364.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.1174, allocations: 8.031 kB / 364.6 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.1176, allocations: 48.38 kB / 364.7 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005201/0.1181, allocations: 343.5 kB / 365 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8e-05/0.1182, allocations: 37.2 kB / 365 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.015e-05/0.1183, allocations: 36.38 kB / 365.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008851/0.1192, allocations: 493.8 kB / 365.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.1192, allocations: 0 / 365.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.465e-05/0.1193, allocations: 16 kB / 365.6 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.1193, allocations: 8 kB / 365.6 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007647/0.12, allocations: 374.4 kB / 366 MB, free: 5.855 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001967/0.122, allocations: 1.108 MB / 367.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.1231, allocations: 443.5 kB / 367.5 MB, free: 4.254 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003502/0.1235, allocations: 178.2 kB / 367.7 MB, free: 4.078 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.123e-05/0.1236, allocations: 4.281 kB / 367.7 MB, free: 4.074 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006148/0.1242, allocations: 340.1 kB / 368 MB, free: 3.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.054e-06/0.1242, allocations: 0 / 368 MB, free: 3.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001581/0.1258, allocations: 0.7343 MB / 368.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.647e-05/0.1259, allocations: 118.7 kB / 368.9 MB, free: 2.836 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003045/0.1262, allocations: 302.5 kB / 369.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.728e-05/0.1263, allocations: 41.7 kB / 369.2 MB, free: 2.488 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.1264, allocations: 180.7 kB / 369.4 MB, free: 2.305 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.1265, allocations: 86.94 kB / 369.5 MB, free: 2.219 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003778/0.1269, allocations: 182 kB / 369.6 MB, free: 2.035 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.127, allocations: 350.7 kB / 370 MB, free: 1.684 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003813/0.1274, allocations: 176.8 kB / 370.1 MB, free: 1.508 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004182/0.1278, allocations: 232.5 kB / 370.4 MB, free: 1.266 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008251/0.1287, allocations: 0.5184 MB / 370.9 MB, free: 0.707 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1287, allocations: 7.938 kB / 370.9 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001155/0.1299, allocations: 0.6438 MB / 371.5 MB, free: 40 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.1525/0.2824, allocations: 60.5 kB / 371.6 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.501e-05/0.2825, allocations: 0.7188 kB / 371.6 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.568e-05/0.2825, allocations: 3.562 kB / 371.6 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004086/0.2829, allocations: 62.11 kB / 371.7 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-05/0.283, allocations: 3.125 kB / 371.7 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005296/0.2835, allocations: 50.67 kB / 371.7 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004154/0.2839, allocations: 282 kB / 372 MB, free: 20.03 MB / 302.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.0004854/0.2844, allocations: 291.2 kB / 372.3 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.2846, allocations: 32.75 kB / 372.3 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.601e-05/0.2846, allocations: 39.58 kB / 372.4 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.2847, allocations: 4.047 kB / 372.4 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.2847, allocations: 4.656 kB / 372.4 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.2847, allocations: 2.016 kB / 372.4 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006385/0.2853, allocations: 475.3 kB / 372.8 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.2853, allocations: 0.9844 kB / 372.8 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.2855, allocations: 53.55 kB / 372.9 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.2855, allocations: 2.625 kB / 372.9 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.891e-05/0.2856, allocations: 44.97 kB / 372.9 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.2856, allocations: 2.672 kB / 372.9 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2856, allocations: 2.969 kB / 372.9 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001164/0.2868, allocations: 0.5991 MB / 373.5 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000277/0.2871, allocations: 198.5 kB / 373.7 MB, free: 19.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.2872, allocations: 18.98 kB / 373.7 MB, free: 19.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002566/0.2874, allocations: 43.02 kB / 373.8 MB, free: 19.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002559/0.2877, allocations: 85.42 kB / 373.9 MB, free: 19.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003476/0.2881, allocations: 275.8 kB / 374.1 MB, free: 19.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002059/0.2883, allocations: 201.5 kB / 374.3 MB, free: 19.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2883, allocations: 0 / 374.3 MB, free: 19.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005119/0.2888, allocations: 99.06 kB / 374.4 MB, free: 19.33 MB / 302.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.0001917/0.289, allocations: 143.5 kB / 374.6 MB, free: 19.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.29, allocations: 0.5515 MB / 375.1 MB, free: 19.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.29, allocations: 0 / 375.1 MB, free: 19.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004898/0.2905, allocations: 362.6 kB / 375.5 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.2917, allocations: 308.2 kB / 375.8 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/0.2931, allocations: 0.8714 MB / 376.6 MB, free: 18.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.2934, allocations: 0.806 MB / 377.5 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001033/0.2944, allocations: 364.9 kB / 377.8 MB, free: 17.57 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2944, allocations: 0.9062 kB / 377.8 MB, free: 17.57 MB / 302.1 MB Notification: Performance of Templates: time 0.01265/0.3071, allocations: 8.285 MB / 386.1 MB, free: 15.06 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (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) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches