Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001488/0.001488, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.596/1.596, allocations: 225.6 MB / 234.8 MB, free: 3.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009228/0.0009228, allocations: 91.7 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.587e-05/1.591e-05, allocations: 4 kB / 343.7 MB, free: 8.258 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09184/0.09187, allocations: 51.48 MB / 395.2 MB, free: 4.734 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2757/0.3676, allocations: 83.55 MB / 478.7 MB, free: 9.367 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001792/0.3678, allocations: 73.42 kB / 478.8 MB, free: 9.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07263/0.4404, allocations: 43.17 MB / 0.5097 GB, free: 3.891 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4404, allocations: 0 / 0.5097 GB, free: 3.891 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.912e-05/0.4405, allocations: 8 kB / 0.5097 GB, free: 3.883 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.0008336/0.4413, allocations: 0.6919 MB / 0.5104 GB, free: 3.133 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.4414, allocations: 12.03 kB / 0.5104 GB, free: 3.121 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.4415, allocations: 47.44 kB / 0.5105 GB, free: 3.074 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004588/0.4419, allocations: 355.1 kB / 0.5108 GB, free: 2.684 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.442, allocations: 15.95 kB / 0.5108 GB, free: 2.668 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.204e-05/0.4421, allocations: 20 kB / 0.5108 GB, free: 2.648 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005362/0.4426, allocations: 333.4 kB / 0.5111 GB, free: 2.324 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006497/0.4433, allocations: 433.8 kB / 0.5116 GB, free: 1.895 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.4433, allocations: 4 kB / 0.5116 GB, free: 1.891 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.687e-05/0.4433, allocations: 4 kB / 0.5116 GB, free: 1.887 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.4433, allocations: 8 kB / 0.5116 GB, free: 1.879 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.4449, allocations: 1.003 MB / 0.5126 GB, free: 0.832 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006862/0.4456, allocations: 388.8 kB / 0.5129 GB, free: 456 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001941/0.4458, allocations: 149.4 kB / 0.5131 GB, free: 304 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.792e-05/0.4458, allocations: 4.281 kB / 0.5131 GB, free: 300 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003922/0.4462, allocations: 311.4 kB / 0.5134 GB, free: 15.97 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 1.733e-06/0.4463, allocations: 0 / 0.5134 GB, free: 15.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007003/0.447, allocations: 462.4 kB / 0.5138 GB, free: 15.52 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.447, allocations: 110.8 kB / 0.5139 GB, free: 15.39 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002323/0.4473, allocations: 262 kB / 0.5142 GB, free: 15.13 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.754e-05/0.4473, allocations: 33.7 kB / 0.5142 GB, free: 15.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.631e-05/0.4474, allocations: 172.7 kB / 0.5144 GB, free: 14.92 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.4475, allocations: 80.7 kB / 0.5144 GB, free: 14.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.838e-05/0.4476, allocations: 4 kB / 0.5144 GB, free: 14.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.4477, allocations: 342.8 kB / 0.5148 GB, free: 14.49 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002235/0.448, allocations: 152.8 kB / 0.5149 GB, free: 14.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002489/0.4482, allocations: 199.7 kB / 0.5151 GB, free: 14.13 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002397/0.4485, allocations: 175.3 kB / 0.5153 GB, free: 13.96 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.4485, allocations: 0 / 0.5153 GB, free: 13.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007245/0.4492, allocations: 0.5191 MB / 0.5158 GB, free: 13.44 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.081e-05/0.4492, allocations: 63.41 kB / 0.5158 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.4493, allocations: 0 / 0.5158 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.4493, allocations: 4 kB / 0.5158 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.4494, allocations: 59.89 kB / 0.5159 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.4494, allocations: 0 / 0.5159 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000262/0.4497, allocations: 47.75 kB / 0.516 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000239/0.45, allocations: 283.8 kB / 0.5162 GB, free: 12.98 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.0001981/0.4502, allocations: 201.5 kB / 0.5164 GB, free: 12.76 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.865e-05/0.4502, allocations: 31.62 kB / 0.5164 GB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.073e-05/0.4503, allocations: 35.39 kB / 0.5165 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.4503, allocations: 4.75 kB / 0.5165 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.4503, allocations: 4 kB / 0.5165 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.4503, allocations: 7.969 kB / 0.5165 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004457/0.4508, allocations: 401.9 kB / 0.5169 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4508, allocations: 0 / 0.5169 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.4509, allocations: 51.91 kB / 0.5169 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.4509, allocations: 3.953 kB / 0.5169 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.551e-05/0.451, allocations: 47.97 kB / 0.517 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.451, allocations: 5.625 kB / 0.517 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.451, allocations: 0 / 0.517 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000666/0.4517, allocations: 0.5004 MB / 0.5175 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/0.4519, allocations: 192.7 kB / 0.5177 GB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.616e-05/0.452, allocations: 11.95 kB / 0.5177 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.4522, allocations: 35.88 kB / 0.5177 GB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.4524, allocations: 83.91 kB / 0.5178 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002181/0.4526, allocations: 279.7 kB / 0.518 GB, free: 11.02 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001518/0.4528, allocations: 186 kB / 0.5182 GB, free: 10.83 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4528, allocations: 4 kB / 0.5182 GB, free: 10.83 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003411/0.4531, allocations: 76 kB / 0.5183 GB, free: 10.75 MB / 394.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.0001694/0.4533, allocations: 129.4 kB / 0.5184 GB, free: 10.62 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005956/0.4539, allocations: 0.4906 MB / 0.5189 GB, free: 10.11 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.4539, allocations: 4.062 kB / 0.5189 GB, free: 10.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003309/0.4543, allocations: 326.6 kB / 0.5192 GB, free: 9.758 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.4554, allocations: 279.5 kB / 0.5195 GB, free: 9.504 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008135/0.4562, allocations: 0.506 MB / 0.52 GB, free: 8.969 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003438/0.4566, allocations: 0.8111 MB / 0.5208 GB, free: 8.133 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001175/0.4578, allocations: 0.7488 MB / 0.5215 GB, free: 7.418 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006485/0.4584, allocations: 262.8 kB / 0.5218 GB, free: 7.16 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4584, allocations: 0 / 0.5218 GB, free: 7.16 MB / 394.7 MB Notification: Performance of Templates: time 0.01237/0.4708, allocations: 9.734 MB / 0.5313 GB, free: 13.27 MB / 410.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches