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.00131/0.00131, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.001523/0.001523, allocations: 210 kB / 24.48 MB, free: 3.941 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.42/1.42, allocations: 230.6 MB / 258.3 MB, free: 7.789 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.001596/0.001596, allocations: 55.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2399, allocations: 53.36 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003424/0.2433, allocations: 1.997 MB / 434.3 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002554/0.2459, allocations: 1.103 MB / 435.4 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.246, allocations: 11.94 kB / 435.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001876/0.2462, allocations: 47.52 kB / 435.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.2463, allocations: 43.58 kB / 435.5 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005536/0.2469, allocations: 179.7 kB / 435.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00056/0.2474, allocations: 471.5 kB / 436.2 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.2477, allocations: 117.3 kB / 436.3 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009745/0.2487, allocations: 0.8344 MB / 437.1 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004041/0.2491, allocations: 274.9 kB / 437.4 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.2492, allocations: 40 kB / 437.4 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.986e-05/0.2493, allocations: 48 kB / 437.5 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002123/0.2495, allocations: 147.5 kB / 437.6 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002519/0.2497, allocations: 179 kB / 437.8 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009144/0.2506, allocations: 0.9252 MB / 438.7 MB, free: 336 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.2507, allocations: 4 kB / 438.7 MB, free: 332 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2507, allocations: 0 / 438.7 MB, free: 332 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.2507, allocations: 0 / 438.7 MB, free: 332 kB / 334.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.001322/0.252, allocations: 0.8122 MB / 439.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.252, allocations: 12.03 kB / 439.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.2522, allocations: 48.66 kB / 439.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005938/0.2528, allocations: 289.3 kB / 439.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.338e-05/0.2528, allocations: 29.02 kB / 439.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.434e-05/0.2529, allocations: 32.38 kB / 439.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009727/0.2539, allocations: 0.5327 MB / 440.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.2539, allocations: 0 / 440.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.865e-05/0.2539, allocations: 16 kB / 440.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.254, allocations: 8 kB / 440.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008386/0.2548, allocations: 433.7 kB / 440.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00204/0.2568, allocations: 0.9419 MB / 441.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.258, allocations: 475.8 kB / 442.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004155/0.2584, allocations: 220.7 kB / 442.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.602e-05/0.2585, allocations: 8.266 kB / 442.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006896/0.2591, allocations: 394.7 kB / 442.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.084e-06/0.2591, allocations: 0 / 442.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001575/0.2607, allocations: 0.8358 MB / 443.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.898e-05/0.2608, allocations: 118.8 kB / 443.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003425/0.2612, allocations: 297.7 kB / 444.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.449e-05/0.2612, allocations: 41.7 kB / 444.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.2614, allocations: 192.8 kB / 444.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.2615, allocations: 83.47 kB / 444.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002866/0.2618, allocations: 182 kB / 444.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.262, allocations: 342.8 kB / 445 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000447/0.2624, allocations: 240.1 kB / 445.2 MB, free: 9.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004644/0.2629, allocations: 295.9 kB / 445.5 MB, free: 9.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009016/0.2638, allocations: 0.517 MB / 446 MB, free: 8.641 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.2638, allocations: 4 kB / 446 MB, free: 8.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001261/0.2651, allocations: 0.6913 MB / 446.7 MB, free: 7.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.036e-05/0.2651, allocations: 63.41 kB / 446.8 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.2651, allocations: 8 kB / 446.8 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.2652, allocations: 4.031 kB / 446.8 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.2653, allocations: 63.89 kB / 446.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.2653, allocations: 4 kB / 446.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000224/0.2656, allocations: 27.88 kB / 446.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002959/0.2659, allocations: 279.7 kB / 447.2 MB, free: 7.461 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.0004058/0.2663, allocations: 293 kB / 447.5 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.227e-05/0.2664, allocations: 31.81 kB / 447.5 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.691e-05/0.2664, allocations: 38.95 kB / 447.5 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.2664, allocations: 4 kB / 447.5 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.2664, allocations: 0 / 447.5 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.2665, allocations: 0 / 447.5 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005099/0.267, allocations: 353 kB / 447.9 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.267, allocations: 0 / 447.9 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.2671, allocations: 51.91 kB / 447.9 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.2671, allocations: 3.984 kB / 447.9 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.257e-05/0.2672, allocations: 47.97 kB / 448 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.2672, allocations: 7.938 kB / 448 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2672, allocations: 0 / 448 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.2683, allocations: 0.6632 MB / 448.6 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000366/0.2687, allocations: 123.7 kB / 448.8 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.2688, allocations: 12 kB / 448.8 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.269, allocations: 19.98 kB / 448.8 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002406/0.2692, allocations: 83.91 kB / 448.9 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003037/0.2695, allocations: 279.7 kB / 449.2 MB, free: 5.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002159/0.2697, allocations: 209.2 kB / 449.4 MB, free: 5.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2697, allocations: 0 / 449.4 MB, free: 5.176 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004445/0.2702, allocations: 99.84 kB / 449.5 MB, free: 5.078 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.0002114/0.2704, allocations: 137.8 kB / 449.6 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001116/0.2715, allocations: 0.654 MB / 450.2 MB, free: 4.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2715, allocations: 0 / 450.2 MB, free: 4.234 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005752/0.2721, allocations: 405.8 kB / 450.6 MB, free: 3.801 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.2734, allocations: 342.7 kB / 451 MB, free: 3.496 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.2748, allocations: 0.8099 MB / 451.8 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002302/0.275, allocations: 200.2 kB / 452 MB, free: 2.422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001061/0.2761, allocations: 366.5 kB / 452.3 MB, free: 2.062 MB / 350.1 MB Notification: Performance of SimCode: time 7.12e-07/0.2761, allocations: 0 / 452.3 MB, free: 2.062 MB / 350.1 MB Notification: Performance of Templates: time 0.01199/0.2881, allocations: 8.335 MB / 460.7 MB, free: 9.379 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: 7.970679191988893]