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.001057/0.001057, allocations: 116.2 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001042/0.001042, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 63.17 kB / 306.4 MB, free: 0.9297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1102, allocations: 50.53 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00402/0.1143, allocations: 2.195 MB / 359.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002833/0.1171, allocations: 1.138 MB / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002763/0.1175, allocations: 4 kB / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002717/0.1178, allocations: 35.7 kB / 360.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002097/0.118, allocations: 39.77 kB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006439/0.1186, allocations: 147.9 kB / 360.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006858/0.1193, allocations: 467.6 kB / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003286/0.1197, allocations: 160.9 kB / 361.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001057/0.1207, allocations: 0.8461 MB / 362 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004437/0.1212, allocations: 263 kB / 362.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001224/0.1213, allocations: 44 kB / 362.3 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.596e-05/0.1214, allocations: 40 kB / 362.3 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001929/0.1216, allocations: 155.5 kB / 362.5 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002788/0.1219, allocations: 214.8 kB / 362.7 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007776/0.1227, allocations: 0.9073 MB / 363.6 MB, free: 7.758 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1227, allocations: 0 / 363.6 MB, free: 7.758 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1227, allocations: 0 / 363.6 MB, free: 7.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.893e-05/0.1228, allocations: 4 kB / 363.6 MB, free: 7.754 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.001689/0.1245, allocations: 0.8693 MB / 364.5 MB, free: 6.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.1245, allocations: 19.95 kB / 364.5 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.1247, allocations: 52.36 kB / 364.5 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005395/0.1253, allocations: 339.5 kB / 364.9 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.125e-05/0.1254, allocations: 37.16 kB / 364.9 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.104e-05/0.1255, allocations: 36.38 kB / 364.9 MB, free: 6.309 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009057/0.1264, allocations: 489.9 kB / 365.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.1264, allocations: 0 / 365.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.832e-05/0.1265, allocations: 16 kB / 365.4 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1265, allocations: 8 kB / 365.4 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007696/0.1273, allocations: 378.4 kB / 365.8 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.1291, allocations: 1.112 MB / 366.9 MB, free: 4.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.1302, allocations: 435.5 kB / 367.3 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000345/0.1305, allocations: 177.3 kB / 367.5 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.759e-05/0.1306, allocations: 4.281 kB / 367.5 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000635/0.1312, allocations: 343.2 kB / 367.9 MB, free: 3.309 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.144e-06/0.1313, allocations: 0 / 367.9 MB, free: 3.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001429/0.1327, allocations: 0.7304 MB / 368.6 MB, free: 2.559 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.526e-05/0.1328, allocations: 122.8 kB / 368.7 MB, free: 2.414 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003402/0.1331, allocations: 298.5 kB / 369 MB, free: 2.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.296e-05/0.1332, allocations: 37.7 kB / 369 MB, free: 2.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.1334, allocations: 188.6 kB / 369.2 MB, free: 1.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.1335, allocations: 82.95 kB / 369.3 MB, free: 1.801 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002899/0.1338, allocations: 186 kB / 369.5 MB, free: 1.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1339, allocations: 342.8 kB / 369.8 MB, free: 1.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004047/0.1343, allocations: 184.8 kB / 370 MB, free: 1.086 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004082/0.1348, allocations: 232.5 kB / 370.2 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008299/0.1356, allocations: 0.5286 MB / 370.8 MB, free: 284 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1356, allocations: 0 / 370.8 MB, free: 284 kB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.1702/0.3058, allocations: 0.6378 MB / 371.4 MB, free: 19.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.587e-05/0.3059, allocations: 63.95 kB / 371.5 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.3059, allocations: 1.094 kB / 371.5 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.306, allocations: 4.688 kB / 371.5 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.3061, allocations: 61.52 kB / 371.5 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.948e-06/0.3062, allocations: 3.125 kB / 371.5 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003744/0.3065, allocations: 43.12 kB / 371.6 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003366/0.3069, allocations: 282.3 kB / 371.8 MB, free: 19.9 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.0003795/0.3073, allocations: 300 kB / 372.1 MB, free: 19.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.178e-05/0.3074, allocations: 32.25 kB / 372.2 MB, free: 19.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.847e-05/0.3075, allocations: 35.34 kB / 372.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.3075, allocations: 4 kB / 372.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3075, allocations: 0 / 372.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.3075, allocations: 3.5 kB / 372.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005677/0.3081, allocations: 479.1 kB / 372.7 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3081, allocations: 0.6875 kB / 372.7 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.3082, allocations: 51.95 kB / 372.7 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.3082, allocations: 3.656 kB / 372.7 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.578e-05/0.3083, allocations: 45.33 kB / 372.8 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.3083, allocations: 2.469 kB / 372.8 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3083, allocations: 0 / 372.8 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.3094, allocations: 0.6035 MB / 373.4 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002564/0.3097, allocations: 201 kB / 373.6 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/0.3098, allocations: 18 kB / 373.6 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.3101, allocations: 37.05 kB / 373.6 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002279/0.3103, allocations: 87.3 kB / 373.7 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002344/0.3105, allocations: 281.2 kB / 374 MB, free: 19.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001773/0.3107, allocations: 200.3 kB / 374.2 MB, free: 19.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3107, allocations: 0 / 374.2 MB, free: 19.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004355/0.3112, allocations: 102.3 kB / 374.3 MB, free: 19.2 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.0001814/0.3114, allocations: 145.9 kB / 374.4 MB, free: 19.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.3124, allocations: 0.6027 MB / 375 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3124, allocations: 0 / 375 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004944/0.3129, allocations: 362.4 kB / 375.4 MB, free: 18.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/0.3142, allocations: 345.7 kB / 375.7 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.3155, allocations: 0.8235 MB / 376.6 MB, free: 18.35 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003339/0.3159, allocations: 0.8037 MB / 377.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001727/0.3176, allocations: 0.7497 MB / 378.1 MB, free: 17.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007341/0.3184, allocations: 269.9 kB / 378.4 MB, free: 17 MB / 302.1 MB Notification: Performance of SimCode: time 1.223e-06/0.3184, allocations: 0 / 378.4 MB, free: 17 MB / 302.1 MB Notification: Performance of Templates: time 0.01602/0.3344, allocations: 10.62 MB / 389 MB, free: 13.55 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/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_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches