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.001529/0.001529, allocations: 107.3 kB / 17.32 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001933/0.001933, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 63.3 kB / 306.4 MB, free: 0.9414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.112, allocations: 50.54 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004155/0.1162, allocations: 2.195 MB / 359.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00236/0.1185, allocations: 1.138 MB / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002253/0.1188, allocations: 7.938 kB / 360.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002525/0.1191, allocations: 35.77 kB / 360.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.1193, allocations: 35.7 kB / 360.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005902/0.1199, allocations: 147.9 kB / 360.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005416/0.1205, allocations: 467.6 kB / 361 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002719/0.1207, allocations: 164.9 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009233/0.1217, allocations: 0.846 MB / 362 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003634/0.122, allocations: 263 kB / 362.2 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001085/0.1222, allocations: 40 kB / 362.3 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.1223, allocations: 44 kB / 362.3 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001782/0.1225, allocations: 155.5 kB / 362.5 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002529/0.1227, allocations: 214.8 kB / 362.7 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007564/0.1235, allocations: 0.9112 MB / 363.6 MB, free: 7.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.1235, allocations: 0 / 363.6 MB, free: 7.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1235, allocations: 0 / 363.6 MB, free: 7.746 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.354e-05/0.1235, allocations: 0 / 363.6 MB, free: 7.746 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.00141/0.125, allocations: 0.8726 MB / 364.5 MB, free: 6.809 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.125, allocations: 8.031 kB / 364.5 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.1252, allocations: 48.38 kB / 364.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004568/0.1256, allocations: 351.5 kB / 364.9 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.38e-05/0.1257, allocations: 29.22 kB / 364.9 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.875e-05/0.1258, allocations: 36.38 kB / 364.9 MB, free: 6.309 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009012/0.1267, allocations: 493.8 kB / 365.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.1267, allocations: 0 / 365.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.482e-05/0.1268, allocations: 16 kB / 365.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1268, allocations: 8 kB / 365.4 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007532/0.1276, allocations: 378.4 kB / 365.8 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.1294, allocations: 1.112 MB / 366.9 MB, free: 4.266 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.1304, allocations: 443.5 kB / 367.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003491/0.1308, allocations: 173.3 kB / 367.5 MB, free: 3.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.464e-05/0.1309, allocations: 4.281 kB / 367.5 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005988/0.1315, allocations: 347.2 kB / 367.9 MB, free: 3.297 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.525e-06/0.1315, allocations: 4 kB / 367.9 MB, free: 3.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001395/0.1329, allocations: 0.7265 MB / 368.6 MB, free: 2.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.556e-05/0.133, allocations: 118.8 kB / 368.7 MB, free: 2.406 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002821/0.1333, allocations: 294.5 kB / 369 MB, free: 2.113 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.963e-05/0.1334, allocations: 41.7 kB / 369 MB, free: 2.066 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.1335, allocations: 180.7 kB / 369.2 MB, free: 1.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.1336, allocations: 86.94 kB / 369.3 MB, free: 1.797 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002657/0.1339, allocations: 190 kB / 369.5 MB, free: 1.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.134, allocations: 338.8 kB / 369.8 MB, free: 1.266 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003755/0.1344, allocations: 180.8 kB / 370 MB, free: 1.086 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/0.1348, allocations: 236.5 kB / 370.2 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000832/0.1357, allocations: 0.5171 MB / 370.7 MB, free: 292 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.1357, allocations: 0 / 370.7 MB, free: 292 kB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.1811/0.3168, allocations: 0.6472 MB / 371.4 MB, free: 19.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.758e-05/0.3169, allocations: 63.86 kB / 371.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.3169, allocations: 4.625 kB / 371.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/0.3169, allocations: 4.203 kB / 371.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001815/0.3171, allocations: 61.38 kB / 371.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.3171, allocations: 4.109 kB / 371.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003762/0.3175, allocations: 45.41 kB / 371.6 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003085/0.3178, allocations: 282.2 kB / 371.8 MB, free: 19.82 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.0003754/0.3182, allocations: 293.2 kB / 372.1 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.659e-05/0.3183, allocations: 32.19 kB / 372.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.754e-05/0.3184, allocations: 36.61 kB / 372.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.3184, allocations: 7.25 kB / 372.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.3184, allocations: 0.6875 kB / 372.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3184, allocations: 3.609 kB / 372.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006754/0.3191, allocations: 476.2 kB / 372.7 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3191, allocations: 1.156 kB / 372.7 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001497/0.3193, allocations: 55.23 kB / 372.7 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.3193, allocations: 4.547 kB / 372.7 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/0.3194, allocations: 45.36 kB / 372.8 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.182e-06/0.3194, allocations: 2.141 kB / 372.8 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3194, allocations: 3.828 kB / 372.8 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.3207, allocations: 0.6051 MB / 373.4 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003109/0.3211, allocations: 192.3 kB / 373.6 MB, free: 19.22 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.3212, allocations: 19.69 kB / 373.6 MB, free: 19.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002565/0.3214, allocations: 40.11 kB / 373.6 MB, free: 19.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/0.3217, allocations: 88.7 kB / 373.7 MB, free: 19.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003022/0.322, allocations: 275.2 kB / 374 MB, free: 19.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001989/0.3222, allocations: 203.8 kB / 374.2 MB, free: 19.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3223, allocations: 1.469 kB / 374.2 MB, free: 19.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000499/0.3228, allocations: 104.7 kB / 374.3 MB, free: 19.12 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.0002141/0.323, allocations: 143.7 kB / 374.4 MB, free: 19.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001144/0.3241, allocations: 0.6042 MB / 375 MB, free: 18.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3241, allocations: 0 / 375 MB, free: 18.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004803/0.3246, allocations: 365.1 kB / 375.4 MB, free: 18.76 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/0.3259, allocations: 333.6 kB / 375.7 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.3272, allocations: 0.8203 MB / 376.5 MB, free: 18.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003413/0.3275, allocations: 0.8068 MB / 377.3 MB, free: 17.56 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001522/0.3291, allocations: 0.7495 MB / 378.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006929/0.3298, allocations: 266.5 kB / 378.4 MB, free: 16.92 MB / 302.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3298, allocations: 1.25 kB / 378.4 MB, free: 16.92 MB / 302.1 MB Notification: Performance of Templates: time 0.01752/0.3473, allocations: 10.62 MB / 389 MB, free: 13.48 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