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.0008698/0.0008696, allocations: 92.81 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002027/0.002027, allocations: 203.3 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.7 MB / 246.8 MB, free: 9.777 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002964/0.0002969, allocations: 8 kB / 307.7 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1256, allocations: 51.52 MB / 359.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00263/0.1283, allocations: 1.832 MB / 361.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00245/0.1307, allocations: 1.13 MB / 362.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001895/0.1309, allocations: 7.938 kB / 362.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002044/0.1312, allocations: 35.77 kB / 362.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001836/0.1314, allocations: 31.72 kB / 362.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005421/0.1319, allocations: 155.9 kB / 362.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006294/0.1326, allocations: 415.6 kB / 362.9 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003457/0.1329, allocations: 152.9 kB / 363 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009781/0.1339, allocations: 0.7952 MB / 363.8 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004307/0.1343, allocations: 215 kB / 364 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.1345, allocations: 12 kB / 364 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.486e-05/0.1346, allocations: 8 kB / 364 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002013/0.1348, allocations: 111.5 kB / 364.1 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003008/0.1351, allocations: 204.5 kB / 364.3 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000948/0.136, allocations: 0.876 MB / 365.2 MB, free: 7.105 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.136, allocations: 0 / 365.2 MB, free: 7.105 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.128e-05/0.1361, allocations: 3.984 kB / 365.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.128e-05/0.1361, allocations: 0 / 365.2 MB, free: 7.102 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.001508/0.1376, allocations: 0.7283 MB / 365.9 MB, free: 6.309 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.1377, allocations: 8.031 kB / 366 MB, free: 6.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002132/0.1379, allocations: 48.47 kB / 366 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005616/0.1385, allocations: 343.4 kB / 366.3 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.531e-05/0.1386, allocations: 33.22 kB / 366.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.1387, allocations: 40.31 kB / 366.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009609/0.1397, allocations: 493.9 kB / 366.9 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.1397, allocations: 0 / 366.9 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.688e-05/0.1398, allocations: 16 kB / 366.9 MB, free: 5.309 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.1398, allocations: 11.98 kB / 366.9 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000921/0.1407, allocations: 394.3 kB / 367.3 MB, free: 4.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002006/0.1427, allocations: 1.105 MB / 368.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.1439, allocations: 471.5 kB / 368.9 MB, free: 3.285 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004355/0.1443, allocations: 178.2 kB / 369 MB, free: 3.109 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.715e-05/0.1444, allocations: 4.281 kB / 369 MB, free: 3.105 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008171/0.1452, allocations: 363 kB / 369.4 MB, free: 2.738 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.425e-06/0.1452, allocations: 0 / 369.4 MB, free: 2.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001574/0.1468, allocations: 0.7422 MB / 370.1 MB, free: 1.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.034e-05/0.1469, allocations: 110.8 kB / 370.3 MB, free: 1.844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004236/0.1473, allocations: 302.4 kB / 370.5 MB, free: 1.543 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.063e-05/0.1474, allocations: 41.69 kB / 370.6 MB, free: 1.496 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002143/0.1476, allocations: 184.6 kB / 370.8 MB, free: 1.309 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.1478, allocations: 90.92 kB / 370.9 MB, free: 1.219 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.1479, allocations: 69.67 kB / 370.9 MB, free: 1.145 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002453/0.1482, allocations: 342.8 kB / 371.3 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004258/0.1486, allocations: 184.8 kB / 371.4 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004874/0.1491, allocations: 244.5 kB / 371.7 MB, free: 372 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2141/0.3633, allocations: 0.5263 MB / 372.2 MB, free: 19.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.139e-05/0.3633, allocations: 2.875 kB / 372.2 MB, free: 19.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001609/0.3649, allocations: 0.651 MB / 372.9 MB, free: 19.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.299e-05/0.365, allocations: 63.7 kB / 372.9 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.365, allocations: 1.562 kB / 372.9 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.566e-05/0.3651, allocations: 4 kB / 372.9 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002003/0.3653, allocations: 60.88 kB / 373 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.443e-05/0.3653, allocations: 3.438 kB / 373 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003945/0.3657, allocations: 53.66 kB / 373 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004312/0.3661, allocations: 281.8 kB / 373.3 MB, free: 19.02 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.0004826/0.3666, allocations: 297.7 kB / 373.6 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.132e-05/0.3667, allocations: 29.98 kB / 373.6 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.474e-05/0.3668, allocations: 40.33 kB / 373.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.3668, allocations: 6.375 kB / 373.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.495e-06/0.3669, allocations: 1.438 kB / 373.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.3669, allocations: 4.344 kB / 373.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007131/0.3676, allocations: 477.8 kB / 374.2 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3676, allocations: 1.062 kB / 374.2 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.3677, allocations: 51.3 kB / 374.2 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3677, allocations: 2.406 kB / 374.2 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.234e-05/0.3678, allocations: 45.06 kB / 374.3 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.3678, allocations: 5.172 kB / 374.3 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3679, allocations: 1.125 kB / 374.3 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.3691, allocations: 0.6159 MB / 374.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002476/0.3693, allocations: 195.7 kB / 375.1 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.607e-05/0.3694, allocations: 17.36 kB / 375.1 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.3697, allocations: 50.61 kB / 375.1 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002296/0.3699, allocations: 88.53 kB / 375.2 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002519/0.3702, allocations: 274.5 kB / 375.5 MB, free: 18.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002065/0.3704, allocations: 204.6 kB / 375.7 MB, free: 18.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3704, allocations: 0 / 375.7 MB, free: 18.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004351/0.3708, allocations: 103.3 kB / 375.8 MB, free: 18.32 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.0001909/0.371, allocations: 140 kB / 375.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.3721, allocations: 0.5649 MB / 376.5 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3721, allocations: 0 / 376.5 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005043/0.3726, allocations: 367.2 kB / 376.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/0.374, allocations: 303.5 kB / 377.1 MB, free: 17.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.3752, allocations: 0.8363 MB / 378 MB, free: 17.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.3755, allocations: 0.8009 MB / 378.8 MB, free: 16.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001254/0.3768, allocations: 0.7505 MB / 379.5 MB, free: 16.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006292/0.3774, allocations: 259.4 kB / 379.8 MB, free: 16.04 MB / 302.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3774, allocations: 1.375 kB / 379.8 MB, free: 16.04 MB / 302.1 MB Notification: Performance of Templates: time 0.01652/0.3939, allocations: 10.3 MB / 390.1 MB, free: 12.68 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