Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001194/0.001194, allocations: 110.2 kB / 18.25 MB, free: 4.898 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.001183/0.001183, allocations: 195.3 kB / 19.18 MB, free: 3.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205.1 MB / 225 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 51.92 kB / 281.3 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09855/0.09977, allocations: 46.63 MB / 328 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004176/0.104, allocations: 2.125 MB / 330.1 MB, free: 2.324 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002754/0.1068, allocations: 1.162 MB / 331.2 MB, free: 1.152 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002481/0.1071, allocations: 4 kB / 331.2 MB, free: 1.148 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002646/0.1074, allocations: 43.58 kB / 331.3 MB, free: 1.105 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002157/0.1076, allocations: 51.58 kB / 331.3 MB, free: 1.055 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006319/0.1083, allocations: 167.8 kB / 331.5 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005633/0.1088, allocations: 463.6 kB / 332 MB, free: 448 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002946/0.1091, allocations: 156.9 kB / 332.1 MB, free: 292 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008691/0.11, allocations: 0.8383 MB / 332.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003363/0.1104, allocations: 251 kB / 333.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.1105, allocations: 47.94 kB / 333.2 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001092/0.1106, allocations: 44 kB / 333.3 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002055/0.1108, allocations: 151.5 kB / 333.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002542/0.1111, allocations: 210.8 kB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008906/0.112, allocations: 0.9154 MB / 334.5 MB, free: 13.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.112, allocations: 0 / 334.5 MB, free: 13.84 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.28e-06/0.112, allocations: 3.984 kB / 334.6 MB, free: 13.83 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.112, allocations: 4 kB / 334.6 MB, free: 13.83 MB / 286.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.001358/0.1134, allocations: 0.8684 MB / 335.4 MB, free: 12.89 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.1135, allocations: 8.031 kB / 335.4 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.1136, allocations: 44.47 kB / 335.5 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000521/0.1141, allocations: 351.4 kB / 335.8 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.318e-05/0.1142, allocations: 25.03 kB / 335.8 MB, free: 12.44 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.708e-05/0.1143, allocations: 36.38 kB / 335.9 MB, free: 12.4 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009527/0.1153, allocations: 498.1 kB / 336.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.1153, allocations: 0 / 336.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.006e-05/0.1154, allocations: 12 kB / 336.4 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.1154, allocations: 8 kB / 336.4 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007856/0.1162, allocations: 378.4 kB / 336.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002006/0.1182, allocations: 1.132 MB / 337.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.1193, allocations: 435.5 kB / 338.3 MB, free: 9.902 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003576/0.1197, allocations: 177.3 kB / 338.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.94e-05/0.1198, allocations: 8.281 kB / 338.5 MB, free: 9.719 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006688/0.1205, allocations: 347.1 kB / 338.8 MB, free: 9.367 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 2.334e-06/0.1205, allocations: 0 / 338.8 MB, free: 9.367 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.001507/0.122, allocations: 0.7237 MB / 339.6 MB, free: 8.625 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.716e-05/0.1221, allocations: 114.8 kB / 339.7 MB, free: 8.488 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003286/0.1224, allocations: 306.4 kB / 340 MB, free: 8.184 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.728e-05/0.1225, allocations: 37.7 kB / 340 MB, free: 8.141 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.1227, allocations: 180.7 kB / 340.2 MB, free: 7.957 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.1228, allocations: 83 kB / 340.3 MB, free: 7.875 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000286/0.1231, allocations: 182 kB / 340.4 MB, free: 7.691 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.1232, allocations: 346.7 kB / 340.8 MB, free: 7.344 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003864/0.1236, allocations: 188.8 kB / 341 MB, free: 7.16 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004247/0.1241, allocations: 236.5 kB / 341.2 MB, free: 6.914 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008521/0.1249, allocations: 0.5067 MB / 341.7 MB, free: 6.367 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1249, allocations: 4 kB / 341.7 MB, free: 6.363 MB / 286.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001202/0.1262, allocations: 0.6449 MB / 342.3 MB, free: 5.699 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.4e-05/0.1262, allocations: 63.39 kB / 342.4 MB, free: 5.625 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.1262, allocations: 4 kB / 342.4 MB, free: 5.621 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/0.1263, allocations: 11.88 kB / 342.4 MB, free: 5.609 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.1264, allocations: 51.91 kB / 342.5 MB, free: 5.559 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.696e-05/0.1265, allocations: 4 kB / 342.5 MB, free: 5.555 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.1267, allocations: 39.8 kB / 342.5 MB, free: 5.516 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002896/0.127, allocations: 287.7 kB / 342.8 MB, free: 5.234 MB / 286.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.0003987/0.1274, allocations: 281.1 kB / 343.1 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.508e-05/0.1275, allocations: 31.62 kB / 343.1 MB, free: 4.906 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.258e-05/0.1276, allocations: 34.95 kB / 343.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.1276, allocations: 8 kB / 343.1 MB, free: 4.863 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1276, allocations: 0 / 343.1 MB, free: 4.863 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.1276, allocations: 3.984 kB / 343.2 MB, free: 4.859 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006041/0.1282, allocations: 489.1 kB / 343.6 MB, free: 4.332 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.1282, allocations: 0 / 343.6 MB, free: 4.332 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001075/0.1284, allocations: 47.91 kB / 343.7 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.1284, allocations: 4 kB / 343.7 MB, free: 4.281 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.119e-05/0.1284, allocations: 43.97 kB / 343.7 MB, free: 4.238 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.1285, allocations: 4 kB / 343.7 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.1285, allocations: 0 / 343.7 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.1296, allocations: 0.6169 MB / 344.3 MB, free: 3.586 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002782/0.1299, allocations: 192.6 kB / 344.5 MB, free: 3.379 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.13, allocations: 20 kB / 344.5 MB, free: 3.359 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.1302, allocations: 15.98 kB / 344.6 MB, free: 3.344 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002349/0.1304, allocations: 83.92 kB / 344.6 MB, free: 3.262 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002749/0.1307, allocations: 283.7 kB / 344.9 MB, free: 2.984 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000213/0.1309, allocations: 213.9 kB / 345.1 MB, free: 2.777 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1309, allocations: 0 / 345.1 MB, free: 2.777 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004427/0.1314, allocations: 91.84 kB / 345.2 MB, free: 2.688 MB / 286.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.0002164/0.1316, allocations: 145.8 kB / 345.4 MB, free: 2.535 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.1327, allocations: 0.6037 MB / 346 MB, free: 1.906 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1327, allocations: 0 / 346 MB, free: 1.906 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005169/0.1333, allocations: 346.6 kB / 346.3 MB, free: 1.543 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.1346, allocations: 333 kB / 346.6 MB, free: 1.219 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.136, allocations: 0.7641 MB / 347.4 MB, free: 428 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004175/0.1365, allocations: 0.815 MB / 348.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001124/0.1376, allocations: 358.5 kB / 348.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of SimCode: time 2.746e-06/0.1376, allocations: 4 kB / 348.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of Templates: time 0.01171/0.1493, allocations: 8.294 MB / 356.9 MB, free: 6.559 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches