Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009478/0.0009478, allocations: 76.81 kB / 22.28 MB, free: 2.207 MB / 18.57 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.001015/0.001015, allocations: 166.6 kB / 25.7 MB, free: 8.406 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8519/0.8519, allocations: 158.6 MB / 187.6 MB, free: 2.785 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 251.5 MB, free: 7.277 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.623e-05/2.778e-05, allocations: 2.312 kB / 251.5 MB, free: 7.273 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003318/0.003345, allocations: 2.02 MB / 253.6 MB, free: 5.238 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002627/0.005973, allocations: 1.143 MB / 254.7 MB, free: 4.086 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000147/0.00612, allocations: 7.938 kB / 254.7 MB, free: 4.078 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002221/0.006342, allocations: 55.5 kB / 254.8 MB, free: 4.023 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.006473, allocations: 39.66 kB / 254.8 MB, free: 3.984 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006133/0.007086, allocations: 191.5 kB / 255 MB, free: 3.797 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005296/0.007616, allocations: 471.6 kB / 255.4 MB, free: 3.336 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000249/0.007865, allocations: 115.9 kB / 255.6 MB, free: 3.223 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009419/0.008807, allocations: 0.8618 MB / 256.4 MB, free: 2.359 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003317/0.009139, allocations: 239.2 kB / 256.7 MB, free: 2.125 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 9.323e-05/0.009232, allocations: 44 kB / 256.7 MB, free: 2.082 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.057e-05/0.009312, allocations: 44 kB / 256.7 MB, free: 2.039 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001834/0.009496, allocations: 147.5 kB / 256.9 MB, free: 1.895 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000188/0.009684, allocations: 147.5 kB / 257 MB, free: 1.746 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007461/0.01043, allocations: 0.7163 MB / 257.7 MB, free: 1.027 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.01043, allocations: 0 / 257.7 MB, free: 1.027 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.01044, allocations: 0 / 257.7 MB, free: 1.027 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.493e-06/0.01044, allocations: 8 kB / 257.7 MB, free: 1.02 MB / 234.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.00107/0.01151, allocations: 0.7327 MB / 258.5 MB, free: 256 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.01155, allocations: 11.98 kB / 258.5 MB, free: 244 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001567/0.01171, allocations: 68.89 kB / 258.6 MB, free: 176 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003874/0.0121, allocations: 259.1 kB / 258.8 MB, free: 15.89 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.687e-05/0.01213, allocations: 25.03 kB / 258.8 MB, free: 15.86 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.241e-05/0.01222, allocations: 32.38 kB / 258.9 MB, free: 15.83 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006107/0.01283, allocations: 374.4 kB / 259.2 MB, free: 15.45 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.01284, allocations: 4.188 kB / 259.2 MB, free: 15.45 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.82e-05/0.0129, allocations: 14.06 kB / 259.3 MB, free: 15.43 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.01291, allocations: 8 kB / 259.3 MB, free: 15.43 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003285/0.01324, allocations: 167.9 kB / 259.4 MB, free: 15.25 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/0.01461, allocations: 0.6989 MB / 260.1 MB, free: 14.53 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006192/0.01523, allocations: 269.1 kB / 260.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001845/0.01541, allocations: 120.7 kB / 260.5 MB, free: 14.11 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.434e-05/0.01546, allocations: 8.281 kB / 260.5 MB, free: 14.11 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003691/0.01583, allocations: 274.4 kB / 260.8 MB, free: 13.81 MB / 250.7 MB Notification: Performance of pre-optimization done (n=35): time 2.765e-06/0.01584, allocations: 0 / 260.8 MB, free: 13.81 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007797/0.01662, allocations: 419.5 kB / 261.2 MB, free: 13.36 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.077e-05/0.01669, allocations: 110.8 kB / 261.3 MB, free: 13.23 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.01691, allocations: 268.7 kB / 261.6 MB, free: 12.95 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.489e-05/0.01698, allocations: 37.7 kB / 261.6 MB, free: 12.91 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.01709, allocations: 172.9 kB / 261.8 MB, free: 12.74 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.01719, allocations: 83.36 kB / 261.8 MB, free: 12.66 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002298/0.01742, allocations: 126 kB / 262 MB, free: 12.53 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.01754, allocations: 342.8 kB / 262.3 MB, free: 12.18 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001925/0.01774, allocations: 112.4 kB / 262.4 MB, free: 12.06 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002221/0.01796, allocations: 176.5 kB / 262.6 MB, free: 11.86 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005531/0.01851, allocations: 313.7 kB / 262.9 MB, free: 11.52 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.01851, allocations: 0 / 262.9 MB, free: 11.52 MB / 250.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005546/0.01907, allocations: 344.2 kB / 263.2 MB, free: 11.15 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.854e-05/0.01913, allocations: 59.41 kB / 263.3 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.01913, allocations: 160 / 263.3 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.01915, allocations: 4 kB / 263.3 MB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.01926, allocations: 35.89 kB / 263.3 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.01927, allocations: 15.86 kB / 263.3 MB, free: 11.02 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.01945, allocations: 35.88 kB / 263.4 MB, free: 10.99 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002548/0.0197, allocations: 243.8 kB / 263.6 MB, free: 10.75 MB / 250.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.0002689/0.01997, allocations: 224 kB / 263.8 MB, free: 10.51 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.02007, allocations: 35.97 kB / 263.9 MB, free: 10.47 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.397e-05/0.02013, allocations: 38.95 kB / 263.9 MB, free: 10.43 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.02013, allocations: 7.938 kB / 263.9 MB, free: 10.43 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.02013, allocations: 0 / 263.9 MB, free: 10.43 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.02014, allocations: 11.92 kB / 263.9 MB, free: 10.41 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003658/0.02051, allocations: 209.6 kB / 264.1 MB, free: 10.19 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.02051, allocations: 4 kB / 264.1 MB, free: 10.19 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.141e-05/0.02058, allocations: 19.97 kB / 264.2 MB, free: 10.17 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.02058, allocations: 0 / 264.2 MB, free: 10.17 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.314e-05/0.02064, allocations: 19.97 kB / 264.2 MB, free: 10.15 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.722e-06/0.02064, allocations: 7.938 kB / 264.2 MB, free: 10.14 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.02065, allocations: 4 kB / 264.2 MB, free: 10.14 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005177/0.02116, allocations: 340.6 kB / 264.5 MB, free: 9.762 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002008/0.02136, allocations: 95.72 kB / 264.6 MB, free: 9.668 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.422e-05/0.02146, allocations: 20 kB / 264.6 MB, free: 9.648 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.02159, allocations: 23.97 kB / 264.7 MB, free: 9.625 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001823/0.02177, allocations: 59.91 kB / 264.7 MB, free: 9.566 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002586/0.02203, allocations: 251.7 kB / 265 MB, free: 9.32 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.82e-05/0.02213, allocations: 82.75 kB / 265 MB, free: 9.238 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02213, allocations: 0 / 265 MB, free: 9.238 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000449/0.02258, allocations: 103.8 kB / 265.1 MB, free: 9.137 MB / 250.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.0002028/0.02278, allocations: 118.9 kB / 265.3 MB, free: 9.012 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005956/0.02338, allocations: 435.1 kB / 265.7 MB, free: 8.535 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.02338, allocations: 4 kB / 265.7 MB, free: 8.531 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003482/0.02373, allocations: 285.7 kB / 266 MB, free: 8.211 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009546/0.02469, allocations: 346.3 kB / 266.3 MB, free: 7.883 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.02607, allocations: 0.6407 MB / 266.9 MB, free: 7.199 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.223e-05/0.02616, allocations: 113 kB / 267.1 MB, free: 7.07 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.001465/0.02762, allocations: 0.7237 MB / 267.8 MB, free: 6.34 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001103/0.02873, allocations: 416.6 kB / 268.2 MB, free: 5.93 MB / 250.7 MB Notification: Performance of SimCode: time 1.363e-06/0.02873, allocations: 0 / 268.2 MB, free: 5.93 MB / 250.7 MB Notification: Performance of Templates: time 0.01835/0.04708, allocations: 11.9 MB / 280.1 MB, free: 9.848 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.7447058619000018]