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.001069/0.001069, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001316/0.001317, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 66.61 kB / 306.9 MB, free: 0.6602 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1141, allocations: 50.53 MB / 357.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004831/0.119, allocations: 2.141 MB / 359.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003024/0.122, allocations: 1.158 MB / 360.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003104/0.1224, allocations: 7.938 kB / 360.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002642/0.1227, allocations: 51.56 kB / 360.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002865/0.123, allocations: 39.66 kB / 360.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008778/0.1239, allocations: 171.7 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006822/0.1246, allocations: 459.6 kB / 361.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003392/0.1249, allocations: 164.9 kB / 361.6 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001034/0.126, allocations: 0.8344 MB / 362.5 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004556/0.1264, allocations: 251 kB / 362.7 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002229/0.1267, allocations: 47.94 kB / 362.8 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001777/0.1269, allocations: 40 kB / 362.8 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002337/0.1271, allocations: 151.5 kB / 363 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003293/0.1274, allocations: 218.8 kB / 363.2 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001143/0.1286, allocations: 0.9112 MB / 364.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1286, allocations: 0 / 364.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1286, allocations: 0 / 364.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.497e-05/0.1287, allocations: 0 / 364.1 MB, free: 7.488 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.002078/0.1307, allocations: 0.8725 MB / 365 MB, free: 6.551 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.1308, allocations: 12.02 kB / 365 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002006/0.131, allocations: 48.38 kB / 365 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005498/0.1316, allocations: 351.5 kB / 365.4 MB, free: 6.109 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.117e-05/0.1316, allocations: 29.22 kB / 365.4 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.893e-05/0.1317, allocations: 36.38 kB / 365.4 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000863/0.1326, allocations: 493.9 kB / 365.9 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.1326, allocations: 0 / 365.9 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.378e-05/0.1327, allocations: 16 kB / 365.9 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.1327, allocations: 8 kB / 365.9 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008027/0.1335, allocations: 378.4 kB / 366.3 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002277/0.1358, allocations: 1.124 MB / 367.4 MB, free: 3.992 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.1369, allocations: 435.5 kB / 367.8 MB, free: 3.559 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003643/0.1373, allocations: 177.3 kB / 368 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.737e-05/0.1374, allocations: 4.281 kB / 368 MB, free: 3.379 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006645/0.1381, allocations: 347.1 kB / 368.4 MB, free: 3.027 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.495e-06/0.1381, allocations: 4 kB / 368.4 MB, free: 3.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001484/0.1396, allocations: 0.7265 MB / 369.1 MB, free: 2.277 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.446e-05/0.1396, allocations: 110.8 kB / 369.2 MB, free: 2.145 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003059/0.1399, allocations: 302.5 kB / 369.5 MB, free: 1.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.805e-05/0.14, allocations: 45.69 kB / 369.5 MB, free: 1.789 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.1402, allocations: 180.7 kB / 369.7 MB, free: 1.605 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.1403, allocations: 82.94 kB / 369.8 MB, free: 1.523 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003282/0.1406, allocations: 186 kB / 370 MB, free: 1.336 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.1408, allocations: 342.8 kB / 370.3 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004118/0.1412, allocations: 180.8 kB / 370.5 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004523/0.1417, allocations: 240.5 kB / 370.7 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000855/0.1426, allocations: 0.5207 MB / 371.2 MB, free: 4 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.1426, allocations: 4 kB / 371.2 MB, free: 0 / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.1794/0.322, allocations: 0.6357 MB / 371.9 MB, free: 19.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.658e-05/0.322, allocations: 60.27 kB / 371.9 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3221, allocations: 2.875 kB / 371.9 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.3221, allocations: 10.98 kB / 372 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.3222, allocations: 58.44 kB / 372 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.3223, allocations: 2.953 kB / 372 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002167/0.3225, allocations: 29.58 kB / 372 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003092/0.3228, allocations: 284.6 kB / 372.3 MB, free: 19.84 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.0003636/0.3232, allocations: 298.1 kB / 372.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.568e-05/0.3233, allocations: 32.25 kB / 372.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.687e-05/0.3233, allocations: 35.8 kB / 372.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.3234, allocations: 3.75 kB / 372.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.3234, allocations: 0 / 372.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.3234, allocations: 1.922 kB / 372.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000516/0.3239, allocations: 482.8 kB / 373.2 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3239, allocations: 1.969 kB / 373.2 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/0.324, allocations: 50.47 kB / 373.2 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.324, allocations: 1.828 kB / 373.2 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.06e-05/0.3241, allocations: 48.25 kB / 373.3 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.3241, allocations: 1.094 kB / 373.3 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3241, allocations: 3.484 kB / 373.3 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.3252, allocations: 0.6031 MB / 373.9 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.3254, allocations: 194 kB / 374.1 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.3255, allocations: 21.5 kB / 374.1 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.3257, allocations: 14.41 kB / 374.1 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002381/0.3259, allocations: 92.7 kB / 374.2 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002256/0.3262, allocations: 277.6 kB / 374.5 MB, free: 19.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001658/0.3263, allocations: 199.9 kB / 374.6 MB, free: 19.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3264, allocations: 5.344 kB / 374.7 MB, free: 19.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003903/0.3267, allocations: 101.8 kB / 374.8 MB, free: 19.14 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.0001601/0.3269, allocations: 142.2 kB / 374.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.3279, allocations: 0.596 MB / 375.5 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3279, allocations: 0 / 375.5 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000459/0.3284, allocations: 364.7 kB / 375.8 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.3296, allocations: 335.4 kB / 376.2 MB, free: 18.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.3308, allocations: 0.7036 MB / 376.9 MB, free: 18.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002625/0.331, allocations: 0.8045 MB / 377.7 MB, free: 17.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001152/0.3322, allocations: 0.7529 MB / 378.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006184/0.3328, allocations: 269.1 kB / 378.7 MB, free: 16.93 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3328, allocations: 0 / 378.7 MB, free: 16.93 MB / 302.1 MB Notification: Performance of Templates: time 0.01647/0.3493, allocations: 10.92 MB / 389.6 MB, free: 13.34 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