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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002338/0.002338, allocations: 181.1 kB / 17.02 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.968/1.968, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009075/0.0009074, allocations: 97.27 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.0003419, allocations: 8 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3404, allocations: 47.57 MB / 375.8 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1474/0.4879, allocations: 82.57 MB / 458.4 MB, free: 14.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.4882, allocations: 71.95 kB / 458.5 MB, free: 14.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08747/0.5757, allocations: 42.6 MB / 0.4893 GB, free: 3.492 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.5757, allocations: 0 / 0.4893 GB, free: 3.492 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.516e-05/0.5758, allocations: 15.94 kB / 0.4893 GB, free: 3.477 MB / 378.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.001173/0.577, allocations: 0.7289 MB / 0.49 GB, free: 2.684 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.577, allocations: 8.031 kB / 0.49 GB, free: 2.676 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.5772, allocations: 47.44 kB / 0.4901 GB, free: 2.629 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005916/0.5778, allocations: 351.1 kB / 0.4904 GB, free: 2.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.728e-05/0.5778, allocations: 28.61 kB / 0.4904 GB, free: 2.223 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.886e-05/0.5779, allocations: 36 kB / 0.4905 GB, free: 2.188 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009087/0.5788, allocations: 497.7 kB / 0.491 GB, free: 1.691 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.5789, allocations: 0 / 0.491 GB, free: 1.691 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.664e-05/0.5789, allocations: 19.98 kB / 0.491 GB, free: 1.672 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.5789, allocations: 8 kB / 0.491 GB, free: 1.664 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007877/0.5797, allocations: 390.4 kB / 0.4914 GB, free: 1.285 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001874/0.5816, allocations: 1.081 MB / 0.4924 GB, free: 152 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2505/0.8322, allocations: 445.4 kB / 0.4928 GB, free: 103.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.977e-05/0.8323, allocations: 5.609 kB / 0.4928 GB, free: 103.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/0.8335, allocations: 350.6 kB / 0.4932 GB, free: 103.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 4.649e-06/0.8335, allocations: 0 / 0.4932 GB, free: 103.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.002626/0.8362, allocations: 0.7253 MB / 0.4939 GB, free: 103.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.8363, allocations: 115 kB / 0.494 GB, free: 103.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005787/0.8369, allocations: 272.8 kB / 0.4943 GB, free: 103.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.916e-05/0.837, allocations: 39.42 kB / 0.4943 GB, free: 103.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.8371, allocations: 170 kB / 0.4945 GB, free: 103.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.8373, allocations: 79.2 kB / 0.4945 GB, free: 103.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.246e-05/0.8373, allocations: 9.938 kB / 0.4945 GB, free: 103.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.8375, allocations: 338.5 kB / 0.4949 GB, free: 102.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004588/0.8379, allocations: 188.8 kB / 0.495 GB, free: 102.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005379/0.8385, allocations: 230.4 kB / 0.4953 GB, free: 102.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005383/0.839, allocations: 253 kB / 0.4955 GB, free: 102.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.8391, allocations: 1.406 kB / 0.4955 GB, free: 102.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001275/0.8403, allocations: 0.6434 MB / 0.4961 GB, free: 102.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.477e-05/0.8404, allocations: 58.38 kB / 0.4962 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.8404, allocations: 1.719 kB / 0.4962 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/0.8404, allocations: 2.875 kB / 0.4962 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.8406, allocations: 60.89 kB / 0.4963 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.8406, allocations: 4.219 kB / 0.4963 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003649/0.841, allocations: 53.97 kB / 0.4963 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004158/0.8414, allocations: 290.4 kB / 0.4966 GB, free: 102.6 MB / 378.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,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,J.y,K.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004847/0.8419, allocations: 278 kB / 0.4968 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.243e-05/0.842, allocations: 35.42 kB / 0.4969 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.8421, allocations: 36.69 kB / 0.4969 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.8422, allocations: 10.41 kB / 0.4969 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.596e-05/0.8422, allocations: 0 / 0.4969 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.8422, allocations: 0.9375 kB / 0.4969 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008918/0.8431, allocations: 465.5 kB / 0.4974 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.8431, allocations: 0.8438 kB / 0.4974 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/0.8433, allocations: 55.84 kB / 0.4974 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.8433, allocations: 2.125 kB / 0.4974 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.8434, allocations: 44.61 kB / 0.4975 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.8434, allocations: 2.188 kB / 0.4975 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.8434, allocations: 0 / 0.4975 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.8446, allocations: 0.6096 MB / 0.4981 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003646/0.845, allocations: 192.6 kB / 0.4983 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/0.8451, allocations: 16.81 kB / 0.4983 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002565/0.8454, allocations: 43.11 kB / 0.4983 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002506/0.8457, allocations: 82.12 kB / 0.4984 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004464/0.8461, allocations: 284.3 kB / 0.4987 GB, free: 101.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002413/0.8464, allocations: 201 kB / 0.4988 GB, free: 101.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8464, allocations: 1.469 kB / 0.4989 GB, free: 101.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005277/0.8469, allocations: 88.03 kB / 0.4989 GB, free: 101.8 MB / 378.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[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[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.y,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (K.y,J.y,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002662/0.8472, allocations: 138.3 kB / 0.4991 GB, free: 101.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.8483, allocations: 0.5542 MB / 0.4996 GB, free: 101.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.8483, allocations: 1.594 kB / 0.4996 GB, free: 101.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005463/0.8489, allocations: 354.4 kB / 0.4999 GB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.8502, allocations: 287.4 kB / 0.5002 GB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.8519, allocations: 0.7839 MB / 0.501 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.8522, allocations: 0.8232 MB / 0.5018 GB, free: 100.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001473/0.8537, allocations: 0.7405 MB / 0.5025 GB, free: 99.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007337/0.8545, allocations: 264.6 kB / 0.5028 GB, free: 99.77 MB / 378.7 MB Notification: Performance of SimCode: time 8.72e-07/0.8545, allocations: 0 / 0.5028 GB, free: 99.77 MB / 378.7 MB Notification: Performance of Templates: time 0.01403/0.8685, allocations: 9.944 MB / 0.5125 GB, free: 98.12 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) 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","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches