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.001116/0.001117, allocations: 101.5 kB / 17.59 MB, free: 5.453 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.001173/0.001173, allocations: 187.3 kB / 18.51 MB, free: 4.531 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.334/1.334, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000984/0.000984, allocations: 46.94 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09345/0.09445, allocations: 49.44 MB / 350.7 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00341/0.0979, allocations: 2.133 MB / 352.9 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002377/0.1003, allocations: 1.126 MB / 354 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.1005, allocations: 4 kB / 354 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000221/0.1008, allocations: 51.52 kB / 354 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.101, allocations: 43.56 kB / 354.1 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000565/0.1015, allocations: 179.7 kB / 354.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005646/0.1021, allocations: 459.6 kB / 354.7 MB, free: 444 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003115/0.1024, allocations: 156.9 kB / 354.9 MB, free: 284 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008428/0.1033, allocations: 0.8422 MB / 355.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003142/0.1036, allocations: 247.1 kB / 355.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001101/0.1037, allocations: 40 kB / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001009/0.1038, allocations: 47.94 kB / 356 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001899/0.104, allocations: 143.5 kB / 356.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002476/0.1043, allocations: 218.8 kB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007369/0.105, allocations: 0.9112 MB / 357.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.105, allocations: 0 / 357.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1051, allocations: 0 / 357.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.1051, allocations: 0 / 357.3 MB, free: 13.84 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.001168/0.1062, allocations: 0.8726 MB / 358.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.1063, allocations: 8.031 kB / 358.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.1064, allocations: 48.47 kB / 358.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004406/0.1069, allocations: 347.4 kB / 358.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/0.1069, allocations: 29.03 kB / 358.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-05/0.107, allocations: 32.38 kB / 358.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008565/0.1079, allocations: 490.1 kB / 359.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.1079, allocations: 4 kB / 359.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.732e-05/0.108, allocations: 20 kB / 359.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.108, allocations: 8 kB / 359.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000757/0.1087, allocations: 378.3 kB / 359.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.1106, allocations: 1.132 MB / 360.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.1117, allocations: 431.5 kB / 361.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003562/0.1121, allocations: 181.3 kB / 361.2 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.914e-05/0.1121, allocations: 4.281 kB / 361.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006145/0.1127, allocations: 355 kB / 361.6 MB, free: 9.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.074e-06/0.1128, allocations: 0 / 361.6 MB, free: 9.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001466/0.1142, allocations: 0.7236 MB / 362.3 MB, free: 8.617 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/0.1143, allocations: 110.8 kB / 362.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003196/0.1146, allocations: 306.5 kB / 362.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.189e-05/0.1147, allocations: 41.7 kB / 362.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.1149, allocations: 184.6 kB / 362.9 MB, free: 7.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.115, allocations: 79.02 kB / 363 MB, free: 7.871 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00029/0.1153, allocations: 182 kB / 363.2 MB, free: 7.688 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1154, allocations: 342.8 kB / 363.5 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003945/0.1158, allocations: 184.7 kB / 363.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004068/0.1163, allocations: 240.5 kB / 363.9 MB, free: 6.918 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000837/0.1171, allocations: 0.5145 MB / 364.5 MB, free: 6.363 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1171, allocations: 4 kB / 364.5 MB, free: 6.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001142/0.1183, allocations: 0.6555 MB / 365.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.872e-05/0.1183, allocations: 59.41 kB / 365.2 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1184, allocations: 0 / 365.2 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.1184, allocations: 4 kB / 365.2 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.1185, allocations: 59.89 kB / 365.2 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.938e-06/0.1186, allocations: 4 kB / 365.2 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.1188, allocations: 35.83 kB / 365.3 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000251/0.119, allocations: 279.7 kB / 365.5 MB, free: 5.242 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.0003985/0.1194, allocations: 289.2 kB / 365.8 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.507e-05/0.1195, allocations: 35.61 kB / 365.9 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.146e-05/0.1196, allocations: 30.97 kB / 365.9 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.563e-06/0.1196, allocations: 7.984 kB / 365.9 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/0.1196, allocations: 0 / 365.9 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1197, allocations: 4 kB / 365.9 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000567/0.1202, allocations: 489.1 kB / 366.4 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1202, allocations: 3.938 kB / 366.4 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.1204, allocations: 43.97 kB / 366.4 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.1204, allocations: 4 kB / 366.4 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.619e-05/0.1205, allocations: 43.97 kB / 366.5 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.1205, allocations: 4 kB / 366.5 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1205, allocations: 0 / 366.5 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.1215, allocations: 0.6091 MB / 367.1 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002738/0.1218, allocations: 196.7 kB / 367.3 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/0.1219, allocations: 15.98 kB / 367.3 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.1221, allocations: 12 kB / 367.3 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002226/0.1223, allocations: 87.91 kB / 367.4 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002708/0.1226, allocations: 279.7 kB / 367.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001895/0.1228, allocations: 205.9 kB / 367.9 MB, free: 2.793 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.614e-06/0.1228, allocations: 4 kB / 367.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004431/0.1233, allocations: 111.6 kB / 368 MB, free: 2.68 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.0002216/0.1235, allocations: 142.2 kB / 368.1 MB, free: 2.531 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001116/0.1246, allocations: 0.604 MB / 368.7 MB, free: 1.902 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.1246, allocations: 0 / 368.7 MB, free: 1.902 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005028/0.1251, allocations: 354.5 kB / 369.1 MB, free: 1.531 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001228/0.1264, allocations: 338.6 kB / 369.4 MB, free: 1.227 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.1277, allocations: 0.7534 MB / 370.2 MB, free: 452 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1435/0.2712, allocations: 0.8021 MB / 371 MB, free: 24.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00124/0.2724, allocations: 362.1 kB / 371.3 MB, free: 24.47 MB / 302.1 MB Notification: Performance of SimCode: time 1.362e-06/0.2725, allocations: 1.656 kB / 371.3 MB, free: 24.47 MB / 302.1 MB Notification: Performance of Templates: time 0.0151/0.2876, allocations: 8.276 MB / 379.6 MB, free: 22.62 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/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_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches