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.00128/0.00128, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001204, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 59.06 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1068, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003304/0.1101, allocations: 2.149 MB / 361 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002336/0.1125, allocations: 1.154 MB / 362.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.1126, allocations: 7.938 kB / 362.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001888/0.1128, allocations: 47.56 kB / 362.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001038/0.113, allocations: 39.59 kB / 362.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000506/0.1135, allocations: 175.7 kB / 362.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004564/0.1139, allocations: 463.6 kB / 362.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002572/0.1142, allocations: 160.8 kB / 363.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008127/0.115, allocations: 0.8461 MB / 363.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003204/0.1154, allocations: 255 kB / 364.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.488e-05/0.1155, allocations: 44 kB / 364.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.891e-05/0.1156, allocations: 44 kB / 364.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001846/0.1158, allocations: 147.5 kB / 364.4 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002369/0.116, allocations: 210.9 kB / 364.6 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007551/0.1168, allocations: 0.9305 MB / 365.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1168, allocations: 0 / 365.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1168, allocations: 0 / 365.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.1168, allocations: 0 / 365.5 MB, free: 6.656 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.001179/0.118, allocations: 0.8685 MB / 366.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.118, allocations: 8.031 kB / 366.4 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001379/0.1182, allocations: 56.3 kB / 366.5 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005509/0.1187, allocations: 343.5 kB / 366.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.433e-05/0.1188, allocations: 29.03 kB / 366.8 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.14e-05/0.1189, allocations: 32.38 kB / 366.9 MB, free: 5.227 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008583/0.1197, allocations: 490 kB / 367.3 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.1198, allocations: 3.984 kB / 367.3 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.09e-05/0.1198, allocations: 24 kB / 367.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.1198, allocations: 4 kB / 367.4 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007213/0.1206, allocations: 378.4 kB / 367.7 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001946/0.1225, allocations: 1.108 MB / 368.8 MB, free: 3.184 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.1235, allocations: 439.5 kB / 369.3 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003382/0.1239, allocations: 177.3 kB / 369.4 MB, free: 2.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.326e-05/0.124, allocations: 4.281 kB / 369.4 MB, free: 2.566 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000601/0.1246, allocations: 344.1 kB / 369.8 MB, free: 2.219 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.114e-06/0.1246, allocations: 0 / 369.8 MB, free: 2.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001415/0.126, allocations: 0.7343 MB / 370.5 MB, free: 1.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.791e-05/0.1261, allocations: 118.8 kB / 370.6 MB, free: 1.324 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003122/0.1264, allocations: 298.5 kB / 370.9 MB, free: 1.023 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.561e-05/0.1265, allocations: 41.7 kB / 371 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.1266, allocations: 180.7 kB / 371.1 MB, free: 0.793 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.39e-05/0.1267, allocations: 82.95 kB / 371.2 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002699/0.127, allocations: 186 kB / 371.4 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.1271, allocations: 346.7 kB / 371.7 MB, free: 180 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000372/0.1275, allocations: 176.8 kB / 371.9 MB, free: 0 / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1711/0.2987, allocations: 232.5 kB / 372.1 MB, free: 19.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000881/0.2996, allocations: 0.5208 MB / 372.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.2996, allocations: 0.5938 kB / 372.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0012/0.3008, allocations: 0.6442 MB / 373.3 MB, free: 19.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.017e-05/0.3009, allocations: 63.84 kB / 373.4 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.3009, allocations: 4.625 kB / 373.4 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.65e-05/0.3009, allocations: 2.812 kB / 373.4 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.3011, allocations: 59.61 kB / 373.4 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/0.3011, allocations: 9.594 kB / 373.4 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.3014, allocations: 23.33 kB / 373.5 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004055/0.3018, allocations: 285.3 kB / 373.7 MB, free: 19.49 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.0004013/0.3022, allocations: 289.3 kB / 374 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.597e-05/0.3023, allocations: 33.52 kB / 374.1 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.903e-05/0.3024, allocations: 41.66 kB / 374.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.3024, allocations: 7.188 kB / 374.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.3024, allocations: 0 / 374.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.3024, allocations: 2.891 kB / 374.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006085/0.303, allocations: 480.5 kB / 374.6 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.303, allocations: 1.031 kB / 374.6 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.3031, allocations: 56.17 kB / 374.6 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.3032, allocations: 1.188 kB / 374.6 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-05/0.3033, allocations: 50.84 kB / 374.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3033, allocations: 2.188 kB / 374.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3033, allocations: 0 / 374.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.3043, allocations: 0.6039 MB / 375.3 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003382/0.3046, allocations: 195.9 kB / 375.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.759e-05/0.3048, allocations: 18.2 kB / 375.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.3049, allocations: 16.73 kB / 375.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002475/0.3052, allocations: 91.3 kB / 375.6 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000303/0.3055, allocations: 278.3 kB / 375.9 MB, free: 18.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00019/0.3057, allocations: 200.4 kB / 376.1 MB, free: 18.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3057, allocations: 1.25 kB / 376.1 MB, free: 18.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004099/0.3061, allocations: 104.5 kB / 376.2 MB, free: 18.66 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.0001611/0.3063, allocations: 139 kB / 376.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009314/0.3072, allocations: 0.5564 MB / 376.9 MB, free: 18.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3072, allocations: 2.281 kB / 376.9 MB, free: 18.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004917/0.3077, allocations: 361.8 kB / 377.2 MB, free: 18.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.3089, allocations: 340.1 kB / 377.6 MB, free: 18.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.3103, allocations: 0.6957 MB / 378.3 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003693/0.3107, allocations: 0.8117 MB / 379.1 MB, free: 17.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001362/0.3121, allocations: 0.7508 MB / 379.8 MB, free: 16.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006894/0.3127, allocations: 263.3 kB / 380.1 MB, free: 16.41 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3128, allocations: 0 / 380.1 MB, free: 16.41 MB / 302.1 MB Notification: Performance of Templates: time 0.01786/0.3306, allocations: 10.9 MB / 391 MB, free: 12.75 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 -s cvode -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