Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 112.5 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 207.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.49/1.49, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 51.92 kB / 374.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09305/0.09456, allocations: 53.32 MB / 427.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003378/0.09794, allocations: 2.154 MB / 429.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002536/0.1005, allocations: 1.169 MB / 430.8 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.1006, allocations: 3.938 kB / 430.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001938/0.1008, allocations: 47.56 kB / 430.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.1009, allocations: 51.58 kB / 430.9 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004953/0.1014, allocations: 167.8 kB / 431.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005049/0.1019, allocations: 459.6 kB / 431.5 MB, free: 220 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002402/0.1021, allocations: 124.9 kB / 431.6 MB, free: 92 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1981/0.3002, allocations: 0.8396 MB / 432.5 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004734/0.3007, allocations: 264.4 kB / 432.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001732/0.3008, allocations: 42.84 kB / 432.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.301, allocations: 40.31 kB / 432.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.3011, allocations: 157 kB / 433 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000277/0.3014, allocations: 214.8 kB / 433.2 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009826/0.3024, allocations: 0.9341 MB / 434.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3024, allocations: 0.75 kB / 434.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3024, allocations: 4.531 kB / 434.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.914e-05/0.3024, allocations: 0 / 434.1 MB, free: 8.121 MB / 350.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.001728/0.3042, allocations: 0.8774 MB / 435 MB, free: 7.566 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.3042, allocations: 10.31 kB / 435 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.3043, allocations: 49.53 kB / 435.1 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004543/0.3048, allocations: 348.4 kB / 435.4 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.529e-05/0.3048, allocations: 29.7 kB / 435.4 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.29e-05/0.3049, allocations: 32.38 kB / 435.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009574/0.3059, allocations: 490.8 kB / 435.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.3059, allocations: 3.938 kB / 435.9 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.796e-05/0.306, allocations: 16.59 kB / 436 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.306, allocations: 12 kB / 436 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008033/0.3068, allocations: 377 kB / 436.3 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.3087, allocations: 1.116 MB / 437.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.3098, allocations: 417.1 kB / 437.9 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003671/0.3101, allocations: 170.3 kB / 438 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.187e-05/0.3102, allocations: 3.562 kB / 438 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006627/0.3109, allocations: 345.8 kB / 438.4 MB, free: 6.871 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.224e-06/0.3109, allocations: 0 / 438.4 MB, free: 6.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.0016/0.3125, allocations: 0.7272 MB / 439.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.3125, allocations: 113.4 kB / 439.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003538/0.3129, allocations: 304.9 kB / 439.5 MB, free: 6.512 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.614e-05/0.3129, allocations: 47.14 kB / 439.6 MB, free: 6.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.313, allocations: 185.4 kB / 439.7 MB, free: 6.363 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.3132, allocations: 82.42 kB / 439.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003134/0.3135, allocations: 186.5 kB / 440 MB, free: 6.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.282e-05/0.3136, allocations: 344.5 kB / 440.3 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004086/0.314, allocations: 181 kB / 440.5 MB, free: 5.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005157/0.3145, allocations: 238.4 kB / 440.7 MB, free: 5.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000827/0.3153, allocations: 0.5181 MB / 441.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3153, allocations: 0 / 441.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001229/0.3165, allocations: 0.6458 MB / 441.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.694e-05/0.3166, allocations: 63.69 kB / 442 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.3166, allocations: 6.203 kB / 442 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.547e-05/0.3166, allocations: 4.781 kB / 442 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.3168, allocations: 62.89 kB / 442 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.3168, allocations: 4.109 kB / 442 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002452/0.317, allocations: 26.27 kB / 442.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002971/0.3173, allocations: 281.6 kB / 442.3 MB, free: 5.262 MB / 350.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.000373/0.3177, allocations: 292.5 kB / 442.6 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.557e-05/0.3178, allocations: 34.75 kB / 442.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.882e-05/0.3179, allocations: 39.12 kB / 442.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.3179, allocations: 3.438 kB / 442.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.3179, allocations: 0 / 442.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.3179, allocations: 3.531 kB / 442.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005709/0.3185, allocations: 479.5 kB / 443.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.3185, allocations: 7.375 kB / 443.2 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.3186, allocations: 52.42 kB / 443.2 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.3186, allocations: 1.25 kB / 443.2 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.488e-05/0.3187, allocations: 45.98 kB / 443.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.3187, allocations: 5.25 kB / 443.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3187, allocations: 0 / 443.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.3198, allocations: 0.6067 MB / 443.9 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000237/0.32, allocations: 197.9 kB / 444.1 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.717e-05/0.3201, allocations: 17.41 kB / 444.1 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.3202, allocations: 16.84 kB / 444.1 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/0.3205, allocations: 83 kB / 444.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002744/0.3207, allocations: 282 kB / 444.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001875/0.3209, allocations: 201.3 kB / 444.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3209, allocations: 0 / 444.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004697/0.3214, allocations: 107 kB / 444.8 MB, free: 4.105 MB / 350.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.000171/0.3216, allocations: 143.8 kB / 444.9 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.3226, allocations: 0.551 MB / 445.5 MB, free: 3.781 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3226, allocations: 3.938 kB / 445.5 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004738/0.3231, allocations: 346.1 kB / 445.8 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/0.3244, allocations: 329.6 kB / 446.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.3258, allocations: 0.7566 MB / 446.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.3261, allocations: 0.8088 MB / 447.7 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/0.3274, allocations: 366.2 kB / 448.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of SimCode: time 1.292e-06/0.3274, allocations: 3.188 kB / 448.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of Templates: time 0.01269/0.3401, allocations: 8.33 MB / 456.4 MB, free: 15.04 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.123231580015272]