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.001554/0.001554, allocations: 80.92 kB / 22.29 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.001223/0.001223, allocations: 166.9 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.9622/0.9622, 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.674e-06/1.674e-06, allocations: 0 / 251.6 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.837e-05/3.005e-05, allocations: 6.25 kB / 251.6 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003549/0.003579, allocations: 2.083 MB / 253.6 MB, free: 5.137 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002703/0.006282, allocations: 1.135 MB / 254.8 MB, free: 3.992 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.00642, allocations: 7.938 kB / 254.8 MB, free: 3.984 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002278/0.006648, allocations: 51.5 kB / 254.8 MB, free: 3.934 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001462/0.006794, allocations: 55.58 kB / 254.9 MB, free: 3.879 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005458/0.00734, allocations: 175.7 kB / 255.1 MB, free: 3.707 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004947/0.007835, allocations: 471.5 kB / 255.5 MB, free: 3.246 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002339/0.008069, allocations: 115.9 kB / 255.6 MB, free: 3.133 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009218/0.00899, allocations: 0.8618 MB / 256.5 MB, free: 2.27 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000325/0.009315, allocations: 239.2 kB / 256.7 MB, free: 2.035 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 9.832e-05/0.009414, allocations: 44 kB / 256.8 MB, free: 1.992 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.24e-05/0.009486, allocations: 40 kB / 256.8 MB, free: 1.953 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.009655, allocations: 155.5 kB / 257 MB, free: 1.801 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001673/0.009822, allocations: 147.5 kB / 257.1 MB, free: 1.656 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006283/0.01045, allocations: 0.7085 MB / 257.8 MB, free: 0.9414 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.01045, allocations: 7.984 kB / 257.8 MB, free: 0.9336 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.01045, allocations: 0 / 257.8 MB, free: 0.9336 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.01046, allocations: 0 / 257.8 MB, free: 0.9336 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.0009744/0.01144, allocations: 0.7327 MB / 258.6 MB, free: 168 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.01147, allocations: 15.98 kB / 258.6 MB, free: 152 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.01162, allocations: 64.89 kB / 258.6 MB, free: 88 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003555/0.01198, allocations: 264.6 kB / 258.9 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.511e-05/0.01201, allocations: 21.03 kB / 258.9 MB, free: 15.78 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.913e-05/0.01209, allocations: 36.38 kB / 259 MB, free: 15.75 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006142/0.0127, allocations: 366.4 kB / 259.3 MB, free: 15.37 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.01272, allocations: 4.172 kB / 259.3 MB, free: 15.37 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.591e-05/0.01277, allocations: 20.31 kB / 259.3 MB, free: 15.35 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.01279, allocations: 11.94 kB / 259.3 MB, free: 15.34 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000345/0.01313, allocations: 167.8 kB / 259.5 MB, free: 15.16 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.01441, allocations: 0.6952 MB / 260.2 MB, free: 14.44 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00059/0.015, allocations: 265.4 kB / 260.5 MB, free: 14.16 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001875/0.01519, allocations: 124.7 kB / 260.6 MB, free: 14.02 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.881e-05/0.01524, allocations: 8.281 kB / 260.6 MB, free: 14.02 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000358/0.0156, allocations: 266.4 kB / 260.9 MB, free: 13.73 MB / 250.7 MB Notification: Performance of pre-optimization done (n=35): time 2.124e-06/0.0156, allocations: 0 / 260.9 MB, free: 13.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007134/0.01631, allocations: 419.5 kB / 261.3 MB, free: 13.28 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.01637, allocations: 114.8 kB / 261.4 MB, free: 13.14 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002109/0.01658, allocations: 264.8 kB / 261.6 MB, free: 12.87 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.28e-05/0.01664, allocations: 37.7 kB / 261.7 MB, free: 12.83 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.855e-05/0.01674, allocations: 168.8 kB / 261.8 MB, free: 12.66 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.01684, allocations: 79.39 kB / 261.9 MB, free: 12.58 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000231/0.01707, allocations: 138 kB / 262.1 MB, free: 12.44 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.01719, allocations: 338.8 kB / 262.4 MB, free: 12.1 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001883/0.01738, allocations: 116.3 kB / 262.5 MB, free: 11.98 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002022/0.01758, allocations: 176.6 kB / 262.7 MB, free: 11.78 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003963/0.01798, allocations: 297.7 kB / 263 MB, free: 11.45 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.01798, allocations: 0 / 263 MB, free: 11.45 MB / 250.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004994/0.01848, allocations: 364.1 kB / 263.3 MB, free: 11.06 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.169e-05/0.01852, allocations: 63.41 kB / 263.4 MB, free: 10.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.01853, allocations: 0 / 263.4 MB, free: 10.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.01854, allocations: 4 kB / 263.4 MB, free: 10.98 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.0187, allocations: 55.81 kB / 263.4 MB, free: 10.93 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.0187, allocations: 0 / 263.4 MB, free: 10.93 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001373/0.01884, allocations: 35.91 kB / 263.5 MB, free: 10.89 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002206/0.01906, allocations: 251.7 kB / 263.7 MB, free: 10.64 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.0002182/0.01928, allocations: 220 kB / 263.9 MB, free: 10.41 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.375e-05/0.01936, allocations: 39.91 kB / 264 MB, free: 10.37 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.737e-05/0.01941, allocations: 30.95 kB / 264 MB, free: 10.34 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.01941, allocations: 8 kB / 264 MB, free: 10.33 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.01942, allocations: 0 / 264 MB, free: 10.33 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.01942, allocations: 3.984 kB / 264 MB, free: 10.32 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002749/0.0197, allocations: 209.7 kB / 264.2 MB, free: 10.1 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.0197, allocations: 4 kB / 264.2 MB, free: 10.1 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.01982, allocations: 43.88 kB / 264.3 MB, free: 10.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.01982, allocations: 0 / 264.3 MB, free: 10.05 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.913e-05/0.01987, allocations: 23.91 kB / 264.3 MB, free: 10.03 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.01987, allocations: 4 kB / 264.3 MB, free: 10.03 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.01987, allocations: 0 / 264.3 MB, free: 10.03 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004446/0.02032, allocations: 340.6 kB / 264.6 MB, free: 9.652 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001544/0.02047, allocations: 103.7 kB / 264.7 MB, free: 9.551 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.461e-05/0.02055, allocations: 15.94 kB / 264.7 MB, free: 9.535 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.02065, allocations: 19.98 kB / 264.8 MB, free: 9.516 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.02081, allocations: 59.91 kB / 264.8 MB, free: 9.457 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002283/0.02104, allocations: 255.7 kB / 265.1 MB, free: 9.207 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.379e-05/0.02113, allocations: 86.75 kB / 265.2 MB, free: 9.121 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02113, allocations: 0 / 265.2 MB, free: 9.121 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002097/0.02134, allocations: 95.89 kB / 265.2 MB, free: 9.027 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.0001085/0.02144, allocations: 123 kB / 265.4 MB, free: 8.898 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003579/0.0218, allocations: 431 kB / 265.8 MB, free: 8.426 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.02181, allocations: 0 / 265.8 MB, free: 8.426 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002115/0.02202, allocations: 289.7 kB / 266.1 MB, free: 8.102 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008395/0.02286, allocations: 356.5 kB / 266.4 MB, free: 7.766 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009641/0.02382, allocations: 0.6484 MB / 267.1 MB, free: 7.074 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.141e-05/0.0239, allocations: 105 kB / 267.2 MB, free: 6.953 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.001351/0.02525, allocations: 0.7198 MB / 267.9 MB, free: 6.227 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009422/0.02619, allocations: 420.6 kB / 268.3 MB, free: 5.812 MB / 250.7 MB Notification: Performance of SimCode: time 7.11e-07/0.0262, allocations: 0 / 268.3 MB, free: 5.812 MB / 250.7 MB Notification: Performance of Templates: time 0.0147/0.0409, allocations: 11.9 MB / 280.2 MB, free: 9.738 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 -s gbode -gbm=radauIIA3 -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.8827524222433567]