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.001144/0.001144, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001252/0.001252, allocations: 167.7 kB / 24.99 MB, free: 8.219 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.9983/0.9983, allocations: 177 MB / 205.2 MB, free: 5.551 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.573e-06/1.573e-06, allocations: 0 / 273 MB, free: 1.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.012e-05/2.169e-05, allocations: 2.312 kB / 273 MB, free: 1.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002161/0.002183, allocations: 2.053 MB / 275 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.003885, allocations: 1.107 MB / 276.2 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.003986, allocations: 7.938 kB / 276.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001561/0.004142, allocations: 51.5 kB / 276.2 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.711e-05/0.00423, allocations: 51.58 kB / 276.3 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000443/0.004673, allocations: 183.5 kB / 276.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003501/0.005023, allocations: 475.5 kB / 276.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.005197, allocations: 113.9 kB / 277 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008653/0.006063, allocations: 0.9086 MB / 277.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002005/0.006263, allocations: 243.2 kB / 278.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.324e-05/0.006326, allocations: 44 kB / 278.2 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.879e-05/0.006385, allocations: 40 kB / 278.2 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001241/0.006509, allocations: 151.5 kB / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001329/0.006642, allocations: 143.5 kB / 278.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004704/0.007112, allocations: 0.7201 MB / 279.3 MB, free: 11.44 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.007116, allocations: 4 kB / 279.3 MB, free: 11.44 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.007117, allocations: 0 / 279.3 MB, free: 11.44 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.007124, allocations: 4 kB / 279.3 MB, free: 11.43 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.0008368/0.007961, allocations: 0.9161 MB / 280.2 MB, free: 10.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.007994, allocations: 11.98 kB / 280.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.008119, allocations: 80.64 kB / 280.3 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.008413, allocations: 287.4 kB / 280.5 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/0.008443, allocations: 25.03 kB / 280.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.957e-05/0.008493, allocations: 36.31 kB / 280.6 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005056/0.008998, allocations: 450.4 kB / 281 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.00901, allocations: 4.188 kB / 281.1 MB, free: 9.543 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.139e-05/0.009051, allocations: 16.38 kB / 281.1 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.009062, allocations: 11.94 kB / 281.1 MB, free: 9.516 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003258/0.009388, allocations: 275.2 kB / 281.3 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.01049, allocations: 0.9529 MB / 282.3 MB, free: 8.238 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005334/0.01102, allocations: 371.4 kB / 282.7 MB, free: 7.852 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.01119, allocations: 175.5 kB / 282.8 MB, free: 7.664 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.17e-05/0.01123, allocations: 4.281 kB / 282.8 MB, free: 7.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003025/0.01153, allocations: 340.9 kB / 283.2 MB, free: 7.301 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.824e-06/0.01154, allocations: 0 / 283.2 MB, free: 7.301 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007565/0.01229, allocations: 0.6875 MB / 283.9 MB, free: 6.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.578e-05/0.01235, allocations: 114.8 kB / 284 MB, free: 6.434 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004919/0.01284, allocations: 336.2 kB / 284.3 MB, free: 6.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.35e-05/0.01288, allocations: 41.7 kB / 284.3 MB, free: 6.043 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.01299, allocations: 227.7 kB / 284.6 MB, free: 5.816 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.232e-05/0.01306, allocations: 91.34 kB / 284.7 MB, free: 5.727 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002007/0.01326, allocations: 199.7 kB / 284.8 MB, free: 5.523 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.01338, allocations: 0.5118 MB / 285.4 MB, free: 5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.01355, allocations: 164.3 kB / 285.5 MB, free: 4.824 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.01374, allocations: 234.8 kB / 285.7 MB, free: 4.562 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003527/0.01409, allocations: 412.2 kB / 286.2 MB, free: 4.117 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.0141, allocations: 7.875 kB / 286.2 MB, free: 4.109 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005591/0.01466, allocations: 0.582 MB / 286.7 MB, free: 3.496 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.062e-05/0.0147, allocations: 70.52 kB / 286.8 MB, free: 3.418 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.0147, allocations: 0 / 286.8 MB, free: 3.418 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.01472, allocations: 7.984 kB / 286.8 MB, free: 3.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.845e-05/0.0148, allocations: 59.84 kB / 286.9 MB, free: 3.352 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.01481, allocations: 4 kB / 286.9 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.01492, allocations: 31.94 kB / 286.9 MB, free: 3.316 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001624/0.01508, allocations: 287.8 kB / 287.2 MB, free: 3.035 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.0001871/0.01527, allocations: 263.8 kB / 287.4 MB, free: 2.754 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.279e-05/0.01534, allocations: 47.81 kB / 287.5 MB, free: 2.707 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.944e-05/0.01538, allocations: 34.94 kB / 287.5 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.01539, allocations: 4 kB / 287.5 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.01539, allocations: 0 / 287.5 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.01539, allocations: 4 kB / 287.5 MB, free: 2.668 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002801/0.01567, allocations: 348.2 kB / 287.9 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.01568, allocations: 3.938 kB / 287.9 MB, free: 2.289 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.611e-05/0.01573, allocations: 51.91 kB / 287.9 MB, free: 2.238 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.01574, allocations: 4 kB / 287.9 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.312e-05/0.01578, allocations: 51.97 kB / 288 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.01578, allocations: 4 kB / 288 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01578, allocations: 0 / 288 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005411/0.01632, allocations: 0.5741 MB / 288.6 MB, free: 1.559 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000138/0.01646, allocations: 119.6 kB / 288.7 MB, free: 1.441 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.989e-05/0.01652, allocations: 27.92 kB / 288.7 MB, free: 1.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.527e-05/0.01661, allocations: 16 kB / 288.7 MB, free: 1.398 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.01678, allocations: 103.9 kB / 288.8 MB, free: 1.297 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001588/0.01694, allocations: 283.7 kB / 289.1 MB, free: 1.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000104/0.01704, allocations: 205.1 kB / 289.3 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01704, allocations: 0 / 289.3 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002566/0.0173, allocations: 103.8 kB / 289.4 MB, free: 0.7227 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.0001331/0.01743, allocations: 137.8 kB / 289.5 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005115/0.01794, allocations: 0.5448 MB / 290.1 MB, free: 15.98 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.01794, allocations: 4 kB / 290.1 MB, free: 15.97 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002742/0.01822, allocations: 361.8 kB / 290.4 MB, free: 15.58 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007104/0.01893, allocations: 378.4 kB / 290.8 MB, free: 15.23 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.02015, allocations: 0.6833 MB / 291.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.787e-05/0.02021, allocations: 101.1 kB / 291.6 MB, free: 14.39 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.001045/0.02126, allocations: 0.7393 MB / 292.3 MB, free: 13.65 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004603/0.02172, allocations: 279.9 kB / 292.6 MB, free: 13.38 MB / 282.7 MB Notification: Performance of SimCode: time 1.703e-06/0.02172, allocations: 0 / 292.6 MB, free: 13.38 MB / 282.7 MB Notification: Performance of Templates: time 0.01164/0.03336, allocations: 11.46 MB / 304.1 MB, free: 1.82 MB / 282.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.9424153689760715]