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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 112.2 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 222.9 MB / 241.1 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 47.11 kB / 299.9 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09638/0.09743, allocations: 49.44 MB / 349.4 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003309/0.1008, allocations: 2.186 MB / 351.6 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002158/0.103, allocations: 1.107 MB / 352.7 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.889e-05/0.1031, allocations: 0 / 352.7 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002134/0.1033, allocations: 39.7 kB / 352.7 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.969e-05/0.1034, allocations: 31.77 kB / 352.8 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005045/0.1039, allocations: 155.8 kB / 352.9 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004177/0.1044, allocations: 419.6 kB / 353.3 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002988/0.1047, allocations: 156.9 kB / 353.5 MB, free: 448 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009143/0.1056, allocations: 0.8109 MB / 354.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003703/0.106, allocations: 243 kB / 354.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.892e-05/0.1061, allocations: 16 kB / 354.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.041e-05/0.1062, allocations: 20 kB / 354.6 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001864/0.1064, allocations: 127.4 kB / 354.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002446/0.1066, allocations: 190.8 kB / 354.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007977/0.1074, allocations: 0.8956 MB / 355.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1074, allocations: 0 / 355.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1074, allocations: 0 / 355.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.1075, allocations: 0 / 355.8 MB, free: 14.14 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.001335/0.1088, allocations: 0.8726 MB / 356.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.1089, allocations: 8.031 kB / 356.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.109, allocations: 48.47 kB / 356.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005294/0.1095, allocations: 351.3 kB / 357 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/0.1096, allocations: 29.03 kB / 357.1 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.229e-05/0.1097, allocations: 32.38 kB / 357.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009261/0.1106, allocations: 494.1 kB / 357.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.1106, allocations: 0 / 357.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.664e-05/0.1107, allocations: 20 kB / 357.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.1107, allocations: 8 kB / 357.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007482/0.1115, allocations: 378.3 kB / 358 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.1134, allocations: 1.104 MB / 359.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.1146, allocations: 439.5 kB / 359.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003719/0.115, allocations: 182.2 kB / 359.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.614e-05/0.1151, allocations: 4.281 kB / 359.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006854/0.1158, allocations: 351.1 kB / 360 MB, free: 9.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 3.506e-06/0.1158, allocations: 3.984 kB / 360 MB, free: 9.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001441/0.1172, allocations: 0.7228 MB / 360.8 MB, free: 8.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.5e-05/0.1173, allocations: 114.8 kB / 360.9 MB, free: 8.801 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003273/0.1176, allocations: 298.5 kB / 361.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.984e-05/0.1177, allocations: 45.7 kB / 361.2 MB, free: 8.453 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.1179, allocations: 184.6 kB / 361.4 MB, free: 8.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.118, allocations: 79.05 kB / 361.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002863/0.1183, allocations: 185.9 kB / 361.6 MB, free: 8.004 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.1185, allocations: 342.8 kB / 362 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004087/0.1189, allocations: 184.8 kB / 362.2 MB, free: 7.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004323/0.1193, allocations: 236.5 kB / 362.4 MB, free: 7.238 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008495/0.1202, allocations: 0.5211 MB / 362.9 MB, free: 6.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.1202, allocations: 7.938 kB / 362.9 MB, free: 6.672 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001124/0.1213, allocations: 0.641 MB / 363.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.302e-05/0.1214, allocations: 67.39 kB / 363.6 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-06/0.1214, allocations: 0 / 363.6 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.1215, allocations: 4 kB / 363.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.1216, allocations: 59.91 kB / 363.7 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.1216, allocations: 0 / 363.7 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003008/0.1219, allocations: 55.66 kB / 363.7 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002726/0.1222, allocations: 287.7 kB / 364 MB, free: 5.535 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.0003693/0.1226, allocations: 289.1 kB / 364.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.908e-05/0.1227, allocations: 31.7 kB / 364.3 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.296e-05/0.1228, allocations: 34.97 kB / 364.4 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.1228, allocations: 4 kB / 364.4 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.1228, allocations: 3.984 kB / 364.4 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1228, allocations: 4 kB / 364.4 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005589/0.1234, allocations: 481.1 kB / 364.9 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1234, allocations: 0 / 364.9 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.1235, allocations: 51.91 kB / 364.9 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1235, allocations: 3.938 kB / 364.9 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-05/0.1236, allocations: 51.97 kB / 365 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1236, allocations: 0 / 365 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1236, allocations: 0 / 365 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.1246, allocations: 0.6139 MB / 365.6 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002433/0.1249, allocations: 188.7 kB / 365.8 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.125, allocations: 16 kB / 365.8 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.1252, allocations: 43.89 kB / 365.8 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002335/0.1255, allocations: 87.84 kB / 365.9 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002459/0.1257, allocations: 283.7 kB / 366.2 MB, free: 3.254 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001813/0.1259, allocations: 201.9 kB / 366.4 MB, free: 3.059 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1259, allocations: 0 / 366.4 MB, free: 3.059 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003978/0.1263, allocations: 103.8 kB / 366.5 MB, free: 2.957 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.000204/0.1265, allocations: 145.7 kB / 366.6 MB, free: 2.809 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009636/0.1275, allocations: 0.5531 MB / 367.2 MB, free: 2.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.1275, allocations: 0 / 367.2 MB, free: 2.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005061/0.128, allocations: 358.5 kB / 367.5 MB, free: 1.855 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.1292, allocations: 297.4 kB / 367.8 MB, free: 1.574 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.1305, allocations: 0.8187 MB / 368.6 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1587/0.2892, allocations: 0.8078 MB / 369.4 MB, free: 24.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001634/0.2909, allocations: 0.749 MB / 370.2 MB, free: 24.13 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006728/0.2916, allocations: 262.9 kB / 370.4 MB, free: 23.97 MB / 302.1 MB Notification: Performance of SimCode: time 1.353e-06/0.2916, allocations: 2.5 kB / 370.4 MB, free: 23.97 MB / 302.1 MB Notification: Performance of Templates: time 0.01561/0.3072, allocations: 10.33 MB / 380.8 MB, free: 21.41 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (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) 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) Reference file matches