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.001764/0.001764, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.002301/0.002301, allocations: 217.7 kB / 24.5 MB, free: 4.133 MB / 14.72 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 1.459/1.459, allocations: 230.5 MB / 258.1 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] 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 0.003218/0.003218, allocations: 63.89 kB / 379 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3357, allocations: 53.41 MB / 432.4 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003283/0.339, allocations: 2.156 MB / 434.6 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002443/0.3414, allocations: 1.177 MB / 435.8 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.3415, allocations: 7.938 kB / 435.8 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001837/0.3417, allocations: 51.52 kB / 435.8 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001175/0.3418, allocations: 43.64 kB / 435.9 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000494/0.3423, allocations: 179.7 kB / 436 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000552/0.3429, allocations: 467.6 kB / 436.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002334/0.3431, allocations: 117.3 kB / 436.6 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009369/0.3441, allocations: 0.8461 MB / 437.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003785/0.3444, allocations: 263 kB / 437.7 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.625e-05/0.3445, allocations: 44 kB / 437.8 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.435e-05/0.3446, allocations: 40 kB / 437.8 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.3448, allocations: 151.5 kB / 438 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002427/0.345, allocations: 222.8 kB / 438.2 MB, free: 1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008284/0.3459, allocations: 0.9237 MB / 439.1 MB, free: 80 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.3459, allocations: 0 / 439.1 MB, free: 80 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3459, allocations: 4 kB / 439.1 MB, free: 76 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.3459, allocations: 4 kB / 439.1 MB, free: 72 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.001219/0.3471, allocations: 0.8007 MB / 439.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.3471, allocations: 12.03 kB / 439.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.3473, allocations: 52.66 kB / 440 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005026/0.3478, allocations: 285.3 kB / 440.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.854e-05/0.3478, allocations: 29.03 kB / 440.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.469e-05/0.3479, allocations: 32.31 kB / 440.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008831/0.3488, allocations: 0.4902 MB / 440.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.3488, allocations: 0 / 440.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.652e-05/0.3488, allocations: 16 kB / 440.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.3488, allocations: 8 kB / 440.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007498/0.3496, allocations: 374.4 kB / 441.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002015/0.3516, allocations: 1.086 MB / 442.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.3526, allocations: 412.1 kB / 442.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003376/0.353, allocations: 169.3 kB / 442.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.987e-05/0.353, allocations: 4.281 kB / 442.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006249/0.3537, allocations: 339.3 kB / 443.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.145e-06/0.3537, allocations: 0 / 443.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001434/0.3551, allocations: 0.7314 MB / 443.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.251e-05/0.3552, allocations: 110.8 kB / 444 MB, free: 10.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003381/0.3555, allocations: 305.7 kB / 444.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.973e-05/0.3556, allocations: 37.7 kB / 444.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.3557, allocations: 188.9 kB / 444.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.3559, allocations: 91.34 kB / 444.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002697/0.3561, allocations: 182 kB / 444.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.3563, allocations: 342.8 kB / 445.1 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003705/0.3566, allocations: 184.7 kB / 445.3 MB, free: 9.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004145/0.3571, allocations: 236.5 kB / 445.5 MB, free: 9.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008218/0.3579, allocations: 0.5094 MB / 446.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.3579, allocations: 3.984 kB / 446.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001169/0.3591, allocations: 0.6488 MB / 446.7 MB, free: 8.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.853e-05/0.3591, allocations: 69.89 kB / 446.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3591, allocations: 0 / 446.8 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.3591, allocations: 4 kB / 446.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.3593, allocations: 59.91 kB / 446.8 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.3593, allocations: 7.938 kB / 446.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001927/0.3595, allocations: 23.94 kB / 446.9 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00028/0.3598, allocations: 283.7 kB / 447.1 MB, free: 7.723 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.0003607/0.3602, allocations: 289.1 kB / 447.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.58e-05/0.3602, allocations: 31.81 kB / 447.5 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.322e-05/0.3603, allocations: 38.95 kB / 447.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3603, allocations: 4 kB / 447.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.3603, allocations: 3.984 kB / 447.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3603, allocations: 4 kB / 447.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005654/0.3609, allocations: 448.3 kB / 447.9 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3609, allocations: 4 kB / 447.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.361, allocations: 55.91 kB / 448 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.361, allocations: 0 / 448 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.666e-05/0.3611, allocations: 47.97 kB / 448.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.3611, allocations: 4 kB / 448.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3611, allocations: 0 / 448.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.3621, allocations: 0.6064 MB / 448.7 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003284/0.3625, allocations: 119.7 kB / 448.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.3626, allocations: 20 kB / 448.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.3627, allocations: 19.92 kB / 448.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002102/0.3629, allocations: 87.83 kB / 448.9 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002721/0.3632, allocations: 283.7 kB / 449.2 MB, free: 5.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002035/0.3634, allocations: 205.1 kB / 449.4 MB, free: 5.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3634, allocations: 0 / 449.4 MB, free: 5.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003934/0.3638, allocations: 103.8 kB / 449.5 MB, free: 5.289 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.0001876/0.364, allocations: 138.5 kB / 449.6 MB, free: 5.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00099/0.365, allocations: 0.5401 MB / 450.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.365, allocations: 4.062 kB / 450.2 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005068/0.3655, allocations: 346.7 kB / 450.5 MB, free: 4.215 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.3666, allocations: 336.7 kB / 450.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.368, allocations: 0.7486 MB / 451.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004653/0.3684, allocations: 0.8072 MB / 452.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/0.3695, allocations: 370.5 kB / 452.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3695, allocations: 0 / 452.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of Templates: time 0.01136/0.3808, allocations: 8.296 MB / 461 MB, free: 9.293 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.30051403795369]