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.001052/0.001052, allocations: 85.91 kB / 22.21 MB, free: 2.285 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.001726/0.001726, allocations: 155 kB / 25.61 MB, free: 8.598 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.9766/0.9766, allocations: 177 MB / 205.9 MB, free: 4.445 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.323e-06/1.323e-06, allocations: 0 / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.42e-05/1.552e-05, allocations: 3 kB / 274.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002121/0.002136, allocations: 2.035 MB / 276.2 MB, free: 2.234 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001595/0.003731, allocations: 1.117 MB / 277.3 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.638e-05/0.003817, allocations: 7.938 kB / 277.3 MB, free: 1.105 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001608/0.003978, allocations: 55.5 kB / 277.3 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.211e-05/0.00406, allocations: 36.28 kB / 277.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003685/0.004429, allocations: 184.5 kB / 277.5 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003302/0.004759, allocations: 471.5 kB / 278 MB, free: 384 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.004926, allocations: 114.6 kB / 278.1 MB, free: 268 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006335/0.00556, allocations: 0.9165 MB / 279 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002147/0.005775, allocations: 235.3 kB / 279.3 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.836e-05/0.005843, allocations: 44 kB / 279.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.855e-05/0.005891, allocations: 45 kB / 279.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.006016, allocations: 155.4 kB / 279.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.00614, allocations: 144.2 kB / 279.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004639/0.006604, allocations: 0.7162 MB / 280.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.694e-06/0.006606, allocations: 2.281 kB / 280.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.006606, allocations: 4 kB / 280.4 MB, free: 14.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.006611, allocations: 0 / 280.4 MB, free: 14.01 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.0008191/0.00743, allocations: 0.9199 MB / 281.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.007466, allocations: 12.02 kB / 281.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.007585, allocations: 84.66 kB / 281.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.007875, allocations: 275.4 kB / 281.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.007904, allocations: 29.03 kB / 281.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.618e-05/0.00796, allocations: 36.36 kB / 281.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004622/0.008422, allocations: 414.5 kB / 282.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.008436, allocations: 192 / 282.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.008478, allocations: 16.38 kB / 282.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.008489, allocations: 11.94 kB / 282.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002726/0.008762, allocations: 243.8 kB / 282.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.009879, allocations: 0.8949 MB / 283.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005344/0.01041, allocations: 355.2 kB / 283.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/0.01057, allocations: 159.6 kB / 283.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.01061, allocations: 8.219 kB / 283.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002961/0.01091, allocations: 317 kB / 284.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.943e-06/0.01091, allocations: 4 kB / 284.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007401/0.01165, allocations: 0.6445 MB / 284.7 MB, free: 9.379 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.0117, allocations: 110.8 kB / 284.9 MB, free: 9.246 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/0.01196, allocations: 336 kB / 285.2 MB, free: 8.902 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.342e-05/0.01201, allocations: 45.64 kB / 285.2 MB, free: 8.852 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.01211, allocations: 231.6 kB / 285.5 MB, free: 8.621 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.177e-05/0.01218, allocations: 79.41 kB / 285.5 MB, free: 8.543 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001794/0.01236, allocations: 211.7 kB / 285.7 MB, free: 8.328 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.01249, allocations: 0.5117 MB / 286.3 MB, free: 7.805 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.01263, allocations: 144.3 kB / 286.4 MB, free: 7.652 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.01282, allocations: 218.7 kB / 286.6 MB, free: 7.402 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005049/0.01333, allocations: 373.8 kB / 287 MB, free: 6.996 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.01333, allocations: 0 / 287 MB, free: 6.996 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006289/0.01396, allocations: 0.5493 MB / 287.5 MB, free: 6.418 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.4e-05/0.014, allocations: 67.39 kB / 287.6 MB, free: 6.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.01401, allocations: 8.125 kB / 287.6 MB, free: 6.332 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.01402, allocations: 4 kB / 287.6 MB, free: 6.328 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.348e-05/0.01411, allocations: 59.91 kB / 287.7 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.01412, allocations: 7.984 kB / 287.7 MB, free: 6.262 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.01423, allocations: 31.88 kB / 287.7 MB, free: 6.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/0.01439, allocations: 279.7 kB / 288 MB, free: 5.957 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.0001829/0.01457, allocations: 271.8 kB / 288.2 MB, free: 5.668 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.78e-05/0.01465, allocations: 51.75 kB / 288.3 MB, free: 5.617 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.282e-05/0.01469, allocations: 30.97 kB / 288.3 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.0147, allocations: 7.984 kB / 288.3 MB, free: 5.582 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.185e-06/0.0147, allocations: 0 / 288.3 MB, free: 5.582 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.01471, allocations: 0 / 288.3 MB, free: 5.582 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002538/0.01496, allocations: 288.9 kB / 288.6 MB, free: 5.273 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.01496, allocations: 0 / 288.6 MB, free: 5.273 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.918e-05/0.01502, allocations: 55.91 kB / 288.7 MB, free: 5.219 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.01503, allocations: 8 kB / 288.7 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.674e-05/0.01507, allocations: 51.91 kB / 288.7 MB, free: 5.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.01507, allocations: 0 / 288.7 MB, free: 5.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.01508, allocations: 0 / 288.7 MB, free: 5.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005344/0.01561, allocations: 0.5506 MB / 289.3 MB, free: 4.562 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001464/0.01576, allocations: 115.7 kB / 289.4 MB, free: 4.449 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.289e-05/0.01582, allocations: 19.94 kB / 289.4 MB, free: 4.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.224e-05/0.0159, allocations: 19.98 kB / 289.4 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.01605, allocations: 91.84 kB / 289.5 MB, free: 4.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001713/0.01622, allocations: 283.7 kB / 289.8 MB, free: 4.043 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.037e-05/0.01631, allocations: 205.1 kB / 290 MB, free: 3.848 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01631, allocations: 0 / 290 MB, free: 3.848 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002583/0.01657, allocations: 103.8 kB / 290.1 MB, free: 3.746 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.0001341/0.0167, allocations: 133.8 kB / 290.2 MB, free: 3.605 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004438/0.01715, allocations: 0.5097 MB / 290.7 MB, free: 3.043 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-06/0.01715, allocations: 0 / 290.7 MB, free: 3.043 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.01739, allocations: 349.8 kB / 291.1 MB, free: 2.66 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006884/0.01808, allocations: 375.5 kB / 291.4 MB, free: 2.324 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007731/0.01885, allocations: 0.6715 MB / 292.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.77e-05/0.01891, allocations: 105 kB / 292.2 MB, free: 1.488 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0009157/0.01982, allocations: 0.7237 MB / 292.9 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006866/0.02051, allocations: 457.5 kB / 293.4 MB, free: 320 kB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.02051, allocations: 4 kB / 293.4 MB, free: 316 kB / 266.7 MB Notification: Performance of Templates: time 0.01155/0.03206, allocations: 12.26 MB / 305.6 MB, free: 3.98 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.9264859491959214]