Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.013/1.013, allocations: 173.3 MB / 201.1 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.84e-05/2.013e-05, allocations: 6.25 kB / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002059/0.002079, allocations: 2.043 MB / 270 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.003712, allocations: 1.095 MB / 271.1 MB, free: 3.289 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.37e-05/0.003806, allocations: 3.938 kB / 271.1 MB, free: 3.285 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.004007, allocations: 55.5 kB / 271.2 MB, free: 3.23 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.004108, allocations: 51.58 kB / 271.2 MB, free: 3.18 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004651/0.004573, allocations: 191.6 kB / 271.4 MB, free: 2.992 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003749/0.004948, allocations: 463.6 kB / 271.9 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001752/0.005123, allocations: 109.3 kB / 272 MB, free: 2.43 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006665/0.00579, allocations: 0.9204 MB / 272.9 MB, free: 1.508 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.006044, allocations: 239.2 kB / 273.1 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.848e-05/0.006123, allocations: 44 kB / 273.2 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.083e-05/0.006184, allocations: 40 kB / 273.2 MB, free: 1.191 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001296/0.006313, allocations: 159.4 kB / 273.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001318/0.006445, allocations: 139.5 kB / 273.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000547/0.006992, allocations: 0.7202 MB / 274.2 MB, free: 180 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.006995, allocations: 0 / 274.2 MB, free: 180 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.006997, allocations: 0 / 274.2 MB, free: 180 kB / 250.7 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.007004, allocations: 0 / 274.2 MB, free: 180 kB / 250.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.001027/0.00803, allocations: 0.924 MB / 275.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.008065, allocations: 8.922 kB / 275.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.008195, allocations: 76.66 kB / 275.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002777/0.008473, allocations: 287.4 kB / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.008503, allocations: 29.03 kB / 275.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.109e-05/0.008554, allocations: 32.38 kB / 275.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005952/0.00915, allocations: 446.5 kB / 276 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.009161, allocations: 192 / 276 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.287e-05/0.009203, allocations: 16.36 kB / 276 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.009216, allocations: 11.94 kB / 276 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003086/0.009524, allocations: 275.2 kB / 276.3 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00107/0.01059, allocations: 0.9529 MB / 277.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005938/0.01119, allocations: 367.3 kB / 277.6 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.01136, allocations: 175.6 kB / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.519e-05/0.01139, allocations: 4.281 kB / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003312/0.01172, allocations: 344.1 kB / 278.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 2.205e-06/0.01173, allocations: 4 kB / 278.1 MB, free: 12.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007643/0.01249, allocations: 0.679 MB / 278.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.01254, allocations: 114.8 kB / 278.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004667/0.01301, allocations: 336.2 kB / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.311e-05/0.01305, allocations: 41.7 kB / 279.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.964e-05/0.01315, allocations: 235.6 kB / 279.5 MB, free: 10.56 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.124e-05/0.01322, allocations: 79.42 kB / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001813/0.01341, allocations: 199.7 kB / 279.8 MB, free: 10.28 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.01355, allocations: 0.5157 MB / 280.3 MB, free: 9.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.01373, allocations: 160.3 kB / 280.5 MB, free: 9.582 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/0.01395, allocations: 242.7 kB / 280.7 MB, free: 9.312 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003644/0.01432, allocations: 397.1 kB / 281.1 MB, free: 8.879 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.01432, allocations: 3.938 kB / 281.1 MB, free: 8.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005768/0.0149, allocations: 0.5889 MB / 281.7 MB, free: 8.258 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.857e-05/0.01493, allocations: 59.41 kB / 281.8 MB, free: 8.188 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.01494, allocations: 4 kB / 281.8 MB, free: 8.184 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.01495, allocations: 0 / 281.8 MB, free: 8.184 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.029e-05/0.01505, allocations: 67.89 kB / 281.8 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.01505, allocations: 8.031 kB / 281.8 MB, free: 8.109 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.01515, allocations: 23.94 kB / 281.9 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001665/0.01532, allocations: 283.7 kB / 282.1 MB, free: 7.809 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.0001875/0.01551, allocations: 271.8 kB / 282.4 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.581e-05/0.01558, allocations: 51.81 kB / 282.5 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.12e-05/0.01563, allocations: 42.89 kB / 282.5 MB, free: 7.426 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.01563, allocations: 4 kB / 282.5 MB, free: 7.422 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.01563, allocations: 0 / 282.5 MB, free: 7.422 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.01564, allocations: 3.984 kB / 282.5 MB, free: 7.418 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00028/0.01592, allocations: 332.4 kB / 282.8 MB, free: 7.059 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.01592, allocations: 3.938 kB / 282.8 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.988e-05/0.01598, allocations: 51.97 kB / 282.9 MB, free: 7.004 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.01598, allocations: 0 / 282.9 MB, free: 7.004 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.802e-05/0.01603, allocations: 51.97 kB / 282.9 MB, free: 6.953 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.01603, allocations: 3.938 kB / 282.9 MB, free: 6.949 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01603, allocations: 0 / 282.9 MB, free: 6.949 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000538/0.01657, allocations: 0.5817 MB / 283.5 MB, free: 6.32 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/0.01671, allocations: 127.6 kB / 283.6 MB, free: 6.195 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.339e-05/0.01677, allocations: 16 kB / 283.7 MB, free: 6.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.287e-05/0.01686, allocations: 23.98 kB / 283.7 MB, free: 6.156 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.01703, allocations: 99.88 kB / 283.8 MB, free: 6.059 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001601/0.01719, allocations: 283.7 kB / 284.1 MB, free: 5.781 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001009/0.01729, allocations: 209.1 kB / 284.3 MB, free: 5.578 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01729, allocations: 0 / 284.3 MB, free: 5.578 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002327/0.01752, allocations: 99.88 kB / 284.4 MB, free: 5.48 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.0001193/0.01764, allocations: 141.8 kB / 284.5 MB, free: 5.332 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005183/0.01816, allocations: 0.5527 MB / 285 MB, free: 4.727 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.01816, allocations: 4 kB / 285.1 MB, free: 4.723 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002532/0.01841, allocations: 361.7 kB / 285.4 MB, free: 4.328 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006845/0.0191, allocations: 387 kB / 285.8 MB, free: 3.977 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009961/0.02009, allocations: 0.6794 MB / 286.5 MB, free: 3.254 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.903e-05/0.02015, allocations: 101.1 kB / 286.6 MB, free: 3.133 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000849/0.021, allocations: 0.7393 MB / 287.3 MB, free: 2.391 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004323/0.02143, allocations: 275.9 kB / 287.6 MB, free: 2.121 MB / 266.7 MB Notification: Performance of SimCode: time 8.61e-07/0.02143, allocations: 0 / 287.6 MB, free: 2.121 MB / 266.7 MB Notification: Performance of Templates: time 0.1131/0.1345, allocations: 11.98 MB / 299.5 MB, free: 26.96 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.9890706152655184]