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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001149/0.001149, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9513/0.9513, allocations: 177 MB / 205.2 MB, free: 5.047 MB / 186.7 MB " [Timeout remaining time 179] 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=5094,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=5094,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 273.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.627e-05/2.761e-05, allocations: 2.312 kB / 273.4 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003233/0.003261, allocations: 2.04 MB / 275.4 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002652/0.005912, allocations: 1.134 MB / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001486/0.006061, allocations: 7.938 kB / 276.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002203/0.006281, allocations: 43.62 kB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.006421, allocations: 47.53 kB / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005958/0.007016, allocations: 191.7 kB / 276.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004971/0.007514, allocations: 467.6 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002256/0.007739, allocations: 116.4 kB / 277.4 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009376/0.008677, allocations: 0.8618 MB / 278.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003411/0.009018, allocations: 239.3 kB / 278.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.11e-05/0.009109, allocations: 40 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.752e-05/0.009186, allocations: 44 kB / 278.6 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001768/0.009363, allocations: 155.4 kB / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.009542, allocations: 143.5 kB / 278.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007116/0.01025, allocations: 0.7279 MB / 279.6 MB, free: 10.81 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.01026, allocations: 4 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.01026, allocations: 0 / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.01027, allocations: 0 / 279.6 MB, free: 10.8 MB / 266.7 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.001077/0.01135, allocations: 0.725 MB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.01138, allocations: 11.98 kB / 280.4 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001538/0.01154, allocations: 60.89 kB / 280.4 MB, free: 9.973 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000365/0.0119, allocations: 264.6 kB / 280.7 MB, free: 9.688 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.565e-05/0.01196, allocations: 29.03 kB / 280.7 MB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.361e-05/0.01204, allocations: 32.38 kB / 280.7 MB, free: 9.629 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006269/0.01267, allocations: 370.4 kB / 281.1 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.01268, allocations: 192 / 281.1 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.011e-05/0.01274, allocations: 20.36 kB / 281.1 MB, free: 9.227 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.01275, allocations: 11.94 kB / 281.1 MB, free: 9.215 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002759/0.01303, allocations: 163.9 kB / 281.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009071/0.01394, allocations: 0.6951 MB / 282 MB, free: 8.328 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004036/0.01434, allocations: 269.4 kB / 282.2 MB, free: 8.043 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.01445, allocations: 124.7 kB / 282.4 MB, free: 7.906 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-05/0.01449, allocations: 4.281 kB / 282.4 MB, free: 7.902 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002451/0.01474, allocations: 279 kB / 282.6 MB, free: 7.605 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.704e-06/0.01474, allocations: 0 / 282.6 MB, free: 7.605 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0004441/0.01519, allocations: 420.3 kB / 283.1 MB, free: 7.152 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.01523, allocations: 114.8 kB / 283.2 MB, free: 7.016 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001378/0.01537, allocations: 256.8 kB / 283.4 MB, free: 6.754 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.077e-05/0.01541, allocations: 41.7 kB / 283.5 MB, free: 6.707 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.723e-05/0.01547, allocations: 164.9 kB / 283.6 MB, free: 6.543 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.454e-05/0.01554, allocations: 91.33 kB / 283.7 MB, free: 6.453 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.01567, allocations: 130 kB / 283.8 MB, free: 6.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.61e-05/0.01575, allocations: 338.8 kB / 284.2 MB, free: 5.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.01586, allocations: 116.3 kB / 284.3 MB, free: 5.852 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.01599, allocations: 172.5 kB / 284.4 MB, free: 5.656 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002534/0.01624, allocations: 313.7 kB / 284.8 MB, free: 5.309 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.01624, allocations: 0 / 284.8 MB, free: 5.309 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000336/0.01658, allocations: 367.1 kB / 285.1 MB, free: 4.922 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.937e-05/0.01662, allocations: 59.41 kB / 285.2 MB, free: 4.852 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.01662, allocations: 0 / 285.2 MB, free: 4.852 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.01663, allocations: 4 kB / 285.2 MB, free: 4.848 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.104e-05/0.01671, allocations: 39.89 kB / 285.2 MB, free: 4.809 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.01672, allocations: 0 / 285.2 MB, free: 4.809 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.01682, allocations: 27.98 kB / 285.2 MB, free: 4.781 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001576/0.01698, allocations: 255.7 kB / 285.5 MB, free: 4.531 MB / 266.7 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.0001718/0.01715, allocations: 223.9 kB / 285.7 MB, free: 4.289 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.212e-05/0.01721, allocations: 39.91 kB / 285.7 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.172e-05/0.01726, allocations: 34.95 kB / 285.8 MB, free: 4.215 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.01726, allocations: 4 kB / 285.8 MB, free: 4.211 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.01726, allocations: 7.938 kB / 285.8 MB, free: 4.203 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.01727, allocations: 0 / 285.8 MB, free: 4.203 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002187/0.01749, allocations: 205.7 kB / 286 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.01749, allocations: 0 / 286 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.737e-05/0.01753, allocations: 23.97 kB / 286 MB, free: 3.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.01754, allocations: 0 / 286 MB, free: 3.961 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.196e-05/0.01757, allocations: 23.91 kB / 286 MB, free: 3.938 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.01757, allocations: 4 kB / 286 MB, free: 3.934 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.01757, allocations: 3.938 kB / 286 MB, free: 3.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003241/0.0179, allocations: 336.8 kB / 286.4 MB, free: 3.559 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001358/0.01803, allocations: 103.7 kB / 286.5 MB, free: 3.457 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.752e-05/0.01809, allocations: 19.94 kB / 286.5 MB, free: 3.438 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.01819, allocations: 19.98 kB / 286.5 MB, free: 3.418 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/0.01836, allocations: 59.91 kB / 286.6 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001881/0.01855, allocations: 251.7 kB / 286.8 MB, free: 3.113 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.344e-05/0.01861, allocations: 86.7 kB / 286.9 MB, free: 3.031 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01861, allocations: 0 / 286.9 MB, free: 3.031 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002406/0.01885, allocations: 99.89 kB / 287 MB, free: 2.934 MB / 266.7 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.0001353/0.01899, allocations: 115 kB / 287.1 MB, free: 2.812 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003687/0.01936, allocations: 431 kB / 287.5 MB, free: 2.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.01936, allocations: 4 kB / 287.5 MB, free: 2.336 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002015/0.01956, allocations: 289.8 kB / 287.8 MB, free: 2.012 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005795/0.02014, allocations: 350.9 kB / 288.2 MB, free: 1.691 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007005/0.02084, allocations: 0.6494 MB / 288.8 MB, free: 1 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.646e-05/0.0209, allocations: 109 kB / 288.9 MB, free: 0.875 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0008493/0.02175, allocations: 0.7237 MB / 289.6 MB, free: 152 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.08968/0.1114, allocations: 411.4 kB / 290 MB, free: 24.75 MB / 266.7 MB Notification: Performance of SimCode: time 1.813e-06/0.1114, allocations: 0 / 290 MB, free: 24.75 MB / 266.7 MB Notification: Performance of Templates: time 0.01308/0.1245, allocations: 11.91 MB / 302 MB, free: 21.1 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8117964561097324]