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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.236/1.236, allocations: 221.4 MB / 235.5 MB, free: 2.965 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008402/0.0008402, allocations: 87.81 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.3e-05/2.303e-05, allocations: 4 kB / 343.8 MB, free: 4.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07927/0.0793, allocations: 50.42 MB / 394.2 MB, free: 1.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2675/0.3469, allocations: 83.39 MB / 477.6 MB, free: 4.133 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001863/0.3471, allocations: 71.8 kB / 477.7 MB, free: 4.066 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08118/0.4283, allocations: 43.43 MB / 0.5089 GB, free: 8.727 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.4283, allocations: 0 / 0.5089 GB, free: 8.727 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.044e-05/0.4284, allocations: 8 kB / 0.5089 GB, free: 8.719 MB / 394.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.0008927/0.4293, allocations: 0.6857 MB / 0.5096 GB, free: 7.969 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.4293, allocations: 12.03 kB / 0.5096 GB, free: 7.957 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.4294, allocations: 47.44 kB / 0.5097 GB, free: 7.91 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005255/0.43, allocations: 355.1 kB / 0.51 GB, free: 7.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.481e-05/0.43, allocations: 24.78 kB / 0.51 GB, free: 7.496 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.219e-05/0.4301, allocations: 36 kB / 0.51 GB, free: 7.461 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007773/0.4309, allocations: 475.5 kB / 0.5105 GB, free: 6.988 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.4309, allocations: 0 / 0.5105 GB, free: 6.988 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.679e-05/0.431, allocations: 19.95 kB / 0.5105 GB, free: 6.969 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.431, allocations: 8 kB / 0.5105 GB, free: 6.961 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006009/0.4316, allocations: 354.9 kB / 0.5109 GB, free: 6.613 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00162/0.4332, allocations: 1.07 MB / 0.5119 GB, free: 5.488 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000822/0.4341, allocations: 407.6 kB / 0.5123 GB, free: 5.082 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002644/0.4344, allocations: 157.4 kB / 0.5124 GB, free: 4.926 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.973e-05/0.4344, allocations: 12.22 kB / 0.5125 GB, free: 4.914 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004502/0.4349, allocations: 319.2 kB / 0.5128 GB, free: 4.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 1.733e-06/0.4349, allocations: 4 kB / 0.5128 GB, free: 4.586 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.0008779/0.4358, allocations: 0.5314 MB / 0.5133 GB, free: 4.035 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.298e-05/0.4358, allocations: 110.8 kB / 0.5134 GB, free: 3.902 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/0.4361, allocations: 270.8 kB / 0.5137 GB, free: 3.637 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.275e-05/0.4362, allocations: 45.7 kB / 0.5137 GB, free: 3.586 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.4363, allocations: 168.7 kB / 0.5139 GB, free: 3.414 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.4364, allocations: 83.05 kB / 0.5139 GB, free: 3.332 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.873e-05/0.4364, allocations: 8 kB / 0.5139 GB, free: 3.324 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.4366, allocations: 338.8 kB / 0.5143 GB, free: 2.984 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002913/0.4369, allocations: 164.8 kB / 0.5144 GB, free: 2.824 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003177/0.4372, allocations: 212.5 kB / 0.5146 GB, free: 2.605 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000342/0.4375, allocations: 239.8 kB / 0.5149 GB, free: 2.359 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.4375, allocations: 0 / 0.5149 GB, free: 2.359 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009006/0.4384, allocations: 0.6051 MB / 0.5154 GB, free: 1.738 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.506e-05/0.4385, allocations: 64.81 kB / 0.5155 GB, free: 1.664 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.4385, allocations: 0 / 0.5155 GB, free: 1.664 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.4385, allocations: 11.98 kB / 0.5155 GB, free: 1.652 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.4387, allocations: 55.91 kB / 0.5156 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.4387, allocations: 160 / 0.5156 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002785/0.439, allocations: 55.84 kB / 0.5156 GB, free: 1.543 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002441/0.4392, allocations: 287.7 kB / 0.5159 GB, free: 1.262 MB / 394.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 () * 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.000198/0.4394, allocations: 212.2 kB / 0.5161 GB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.696e-05/0.4395, allocations: 39.58 kB / 0.5161 GB, free: 0.9961 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.303e-05/0.4396, allocations: 39.08 kB / 0.5162 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.4396, allocations: 4 kB / 0.5162 GB, free: 0.957 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4396, allocations: 0 / 0.5162 GB, free: 0.957 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.4396, allocations: 0 / 0.5162 GB, free: 0.957 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005035/0.4401, allocations: 465.3 kB / 0.5166 GB, free: 464 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.4401, allocations: 0 / 0.5166 GB, free: 464 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.4403, allocations: 51.89 kB / 0.5167 GB, free: 412 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.4403, allocations: 4 kB / 0.5167 GB, free: 408 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.936e-05/0.4404, allocations: 43.94 kB / 0.5167 GB, free: 364 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.4404, allocations: 4 kB / 0.5167 GB, free: 360 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.4404, allocations: 4 kB / 0.5167 GB, free: 356 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008467/0.4412, allocations: 0.5701 MB / 0.5173 GB, free: 15.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002868/0.4415, allocations: 188.7 kB / 0.5175 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.461e-05/0.4416, allocations: 19.98 kB / 0.5175 GB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002255/0.4419, allocations: 43.83 kB / 0.5175 GB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.4421, allocations: 87.91 kB / 0.5176 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002317/0.4423, allocations: 279.7 kB / 0.5179 GB, free: 15.12 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001748/0.4425, allocations: 199.1 kB / 0.5181 GB, free: 14.92 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4425, allocations: 0 / 0.5181 GB, free: 14.92 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003477/0.4428, allocations: 88 kB / 0.5182 GB, free: 14.84 MB / 410.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) * 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.0001799/0.443, allocations: 143.4 kB / 0.5183 GB, free: 14.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007409/0.4438, allocations: 0.5102 MB / 0.5188 GB, free: 14.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4438, allocations: 0 / 0.5188 GB, free: 14.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004173/0.4442, allocations: 338.5 kB / 0.5191 GB, free: 13.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/0.4453, allocations: 276 kB / 0.5194 GB, free: 13.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009123/0.4463, allocations: 0.524 MB / 0.5199 GB, free: 12.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.4466, allocations: 0.815 MB / 0.5207 GB, free: 12.15 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001247/0.4479, allocations: 0.747 MB / 0.5214 GB, free: 11.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006811/0.4486, allocations: 258.8 kB / 0.5217 GB, free: 11.15 MB / 410.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4486, allocations: 0 / 0.5217 GB, free: 11.15 MB / 410.7 MB Notification: Performance of Templates: time 0.01308/0.4617, allocations: 9.97 MB / 0.5314 GB, free: 1.012 MB / 410.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches