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.001071/0.001071, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001079/0.001079, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.9868/0.9868, allocations: 177 MB / 204.8 MB, free: 5.562 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.854e-06/1.854e-06, allocations: 0 / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.851e-05/3.037e-05, allocations: 2.312 kB / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002573/0.002603, allocations: 2.061 MB / 275 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001942/0.004545, allocations: 1.122 MB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001648/0.00471, allocations: 7.938 kB / 276.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002121/0.004922, allocations: 47.52 kB / 276.1 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000132/0.005054, allocations: 51.58 kB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006794/0.005734, allocations: 187.5 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005694/0.006303, allocations: 479.5 kB / 276.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002562/0.006559, allocations: 101.9 kB / 277 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009454/0.007505, allocations: 0.9164 MB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004198/0.007925, allocations: 239.3 kB / 278.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.008029, allocations: 40 kB / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.602e-05/0.008105, allocations: 47.94 kB / 278.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001598/0.008265, allocations: 143.5 kB / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001717/0.008436, allocations: 147.5 kB / 278.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007987/0.009235, allocations: 0.7201 MB / 279.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.009241, allocations: 4 kB / 279.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.009244, allocations: 4 kB / 279.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.186e-05/0.009265, allocations: 0 / 279.2 MB, free: 11.12 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.001279/0.01054, allocations: 0.9161 MB / 280.1 MB, free: 10.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.01059, allocations: 11.98 kB / 280.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.01076, allocations: 76.66 kB / 280.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003856/0.01115, allocations: 291.4 kB / 280.5 MB, free: 9.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.098e-05/0.01119, allocations: 25.03 kB / 280.5 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.736e-05/0.01124, allocations: 36.38 kB / 280.5 MB, free: 9.691 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007766/0.01202, allocations: 450.4 kB / 281 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.01203, allocations: 4.188 kB / 281 MB, free: 9.227 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.17e-05/0.01207, allocations: 16.31 kB / 281 MB, free: 9.211 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.01209, allocations: 11.94 kB / 281 MB, free: 9.199 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003532/0.01244, allocations: 271.2 kB / 281.3 MB, free: 8.918 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.01371, allocations: 0.9529 MB / 282.2 MB, free: 7.926 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006497/0.01436, allocations: 375.4 kB / 282.6 MB, free: 7.535 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001874/0.01455, allocations: 171.5 kB / 282.8 MB, free: 7.352 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.238e-05/0.01461, allocations: 4.281 kB / 282.8 MB, free: 7.348 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003482/0.01496, allocations: 344.9 kB / 283.1 MB, free: 6.984 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 2.835e-06/0.01496, allocations: 0 / 283.1 MB, free: 6.984 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0008107/0.01577, allocations: 0.6875 MB / 283.8 MB, free: 6.254 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/0.01583, allocations: 110.8 kB / 283.9 MB, free: 6.121 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002517/0.01608, allocations: 336.2 kB / 284.2 MB, free: 5.777 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.01612, allocations: 41.7 kB / 284.3 MB, free: 5.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.01623, allocations: 231.7 kB / 284.5 MB, free: 5.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.328e-05/0.01631, allocations: 87.36 kB / 284.6 MB, free: 5.414 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001951/0.0165, allocations: 199.7 kB / 284.8 MB, free: 5.211 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.01665, allocations: 0.5079 MB / 285.3 MB, free: 4.691 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.01685, allocations: 168.3 kB / 285.5 MB, free: 4.512 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.01705, allocations: 234.8 kB / 285.7 MB, free: 4.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000385/0.01744, allocations: 413.1 kB / 286.1 MB, free: 3.805 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.01744, allocations: 3.938 kB / 286.1 MB, free: 3.801 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006392/0.01808, allocations: 0.5859 MB / 286.7 MB, free: 3.184 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.185e-05/0.01813, allocations: 66.06 kB / 286.7 MB, free: 3.109 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.01814, allocations: 3.984 kB / 286.7 MB, free: 3.105 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.01816, allocations: 4 kB / 286.7 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.01828, allocations: 63.84 kB / 286.8 MB, free: 3.039 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.403e-06/0.01828, allocations: 0 / 286.8 MB, free: 3.039 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.01842, allocations: 31.94 kB / 286.8 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001867/0.01861, allocations: 283.8 kB / 287.1 MB, free: 2.73 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.0001952/0.0188, allocations: 267.8 kB / 287.4 MB, free: 2.445 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.319e-05/0.01887, allocations: 47.81 kB / 287.4 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.509e-05/0.01892, allocations: 34.95 kB / 287.5 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.01892, allocations: 4 kB / 287.5 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.01893, allocations: 4 kB / 287.5 MB, free: 2.359 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.01893, allocations: 3.984 kB / 287.5 MB, free: 2.355 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003088/0.01924, allocations: 344.2 kB / 287.8 MB, free: 1.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.01925, allocations: 3.938 kB / 287.8 MB, free: 1.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002031/0.01945, allocations: 51.91 kB / 287.9 MB, free: 1.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.01945, allocations: 4 kB / 287.9 MB, free: 1.926 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.623e-05/0.01951, allocations: 51.97 kB / 287.9 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.175e-06/0.01951, allocations: 0 / 287.9 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.01951, allocations: 4 kB / 287.9 MB, free: 1.871 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005763/0.02009, allocations: 0.5702 MB / 288.5 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001719/0.02026, allocations: 135.6 kB / 288.6 MB, free: 1.121 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.508e-05/0.02032, allocations: 16 kB / 288.6 MB, free: 1.105 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.029e-05/0.02041, allocations: 19.98 kB / 288.7 MB, free: 1.086 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.02058, allocations: 99.89 kB / 288.8 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001842/0.02077, allocations: 291.6 kB / 289 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001186/0.02089, allocations: 205.1 kB / 289.2 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.02089, allocations: 0 / 289.2 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003112/0.0212, allocations: 103.8 kB / 289.3 MB, free: 416 kB / 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.0001426/0.02134, allocations: 133.8 kB / 289.5 MB, free: 272 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000581/0.02192, allocations: 0.5487 MB / 290 MB, free: 15.66 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.02192, allocations: 0 / 290 MB, free: 15.66 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002947/0.02222, allocations: 361.8 kB / 290.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007607/0.02298, allocations: 382.7 kB / 290.8 MB, free: 14.92 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009252/0.02391, allocations: 0.6794 MB / 291.4 MB, free: 14.2 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.743e-05/0.02397, allocations: 105.1 kB / 291.5 MB, free: 14.07 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.001038/0.02501, allocations: 0.7432 MB / 292.3 MB, free: 13.33 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004681/0.02548, allocations: 271.9 kB / 292.5 MB, free: 13.06 MB / 282.7 MB Notification: Performance of SimCode: time 8.62e-07/0.02548, allocations: 0 / 292.5 MB, free: 13.06 MB / 282.7 MB Notification: Performance of Templates: time 0.01362/0.0391, allocations: 11.46 MB / 304 MB, free: 1.512 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.9573458340018988]