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.0009162/0.0009163, allocations: 180.3 kB / 16.38 MB, free: 5.762 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.346/1.346, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008747/0.0008746, allocations: 99.61 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002852/0.0002852, allocations: 7.938 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.251, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1062/0.3573, allocations: 83.47 MB / 485 MB, free: 13.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.3576, allocations: 75.89 kB / 485 MB, free: 12.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2953/0.6529, allocations: 43.11 MB / 0.5158 GB, free: 96.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.6529, allocations: 3.844 kB / 0.5158 GB, free: 96.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.029e-05/0.653, allocations: 15.25 kB / 0.5158 GB, free: 96.5 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.001282/0.6543, allocations: 0.7313 MB / 0.5165 GB, free: 95.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.6543, allocations: 7.875 kB / 0.5165 GB, free: 95.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001628/0.6545, allocations: 50.19 kB / 0.5166 GB, free: 95.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006637/0.6552, allocations: 342.4 kB / 0.5169 GB, free: 95.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.424e-05/0.6553, allocations: 31.34 kB / 0.5169 GB, free: 95.58 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.6554, allocations: 33.69 kB / 0.5169 GB, free: 95.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.6566, allocations: 498 kB / 0.5174 GB, free: 95.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.6566, allocations: 0 / 0.5174 GB, free: 95.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.299e-05/0.6567, allocations: 15.12 kB / 0.5174 GB, free: 95.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.6568, allocations: 6.812 kB / 0.5174 GB, free: 95.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/0.6578, allocations: 391.6 kB / 0.5178 GB, free: 95.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.6602, allocations: 1.083 MB / 0.5189 GB, free: 94.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001369/0.6616, allocations: 459.3 kB / 0.5193 GB, free: 93.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.805e-05/0.6617, allocations: 4.281 kB / 0.5193 GB, free: 93.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007016/0.6624, allocations: 335 kB / 0.5196 GB, free: 93.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 2.755e-06/0.6624, allocations: 3.938 kB / 0.5196 GB, free: 93.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.001845/0.6643, allocations: 0.7239 MB / 0.5203 GB, free: 92.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.6643, allocations: 110.8 kB / 0.5204 GB, free: 92.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000338/0.6647, allocations: 277.6 kB / 0.5207 GB, free: 92.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.253e-05/0.6648, allocations: 37.7 kB / 0.5207 GB, free: 92.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.6649, allocations: 180.9 kB / 0.5209 GB, free: 92.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.665, allocations: 70.98 kB / 0.521 GB, free: 92.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.453e-05/0.6651, allocations: 8 kB / 0.521 GB, free: 92.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.061e-05/0.6652, allocations: 342.8 kB / 0.5213 GB, free: 91.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004818/0.6657, allocations: 176.8 kB / 0.5215 GB, free: 91.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005096/0.6662, allocations: 232.5 kB / 0.5217 GB, free: 91.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005528/0.6668, allocations: 270.5 kB / 0.522 GB, free: 91.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.6668, allocations: 0 / 0.522 GB, free: 91.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001433/0.6682, allocations: 0.6364 MB / 0.5226 GB, free: 90.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.202e-05/0.6683, allocations: 59.41 kB / 0.5227 GB, free: 90.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.6683, allocations: 4 kB / 0.5227 GB, free: 90.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.6684, allocations: 4.031 kB / 0.5227 GB, free: 90.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001874/0.6686, allocations: 63.52 kB / 0.5227 GB, free: 90.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.6686, allocations: 8.141 kB / 0.5227 GB, free: 90.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004661/0.6691, allocations: 51.66 kB / 0.5228 GB, free: 90.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003036/0.6694, allocations: 283.3 kB / 0.523 GB, free: 89.93 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.0004048/0.6698, allocations: 280.9 kB / 0.5233 GB, free: 89.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.6699, allocations: 35.58 kB / 0.5233 GB, free: 89.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.357e-05/0.67, allocations: 42.95 kB / 0.5234 GB, free: 89.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.67, allocations: 4 kB / 0.5234 GB, free: 89.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.433e-06/0.67, allocations: 0 / 0.5234 GB, free: 89.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.67, allocations: 3.984 kB / 0.5234 GB, free: 89.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006437/0.6707, allocations: 459.1 kB / 0.5238 GB, free: 89.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.6707, allocations: 0 / 0.5238 GB, free: 89.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001301/0.6709, allocations: 55.72 kB / 0.5239 GB, free: 89.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.6709, allocations: 7.953 kB / 0.5239 GB, free: 89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.363e-05/0.671, allocations: 47.97 kB / 0.5239 GB, free: 88.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.671, allocations: 3.875 kB / 0.5239 GB, free: 88.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.671, allocations: 0 / 0.5239 GB, free: 88.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.6723, allocations: 0.6056 MB / 0.5245 GB, free: 88.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003801/0.6727, allocations: 192.7 kB / 0.5247 GB, free: 88.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001167/0.6728, allocations: 19.95 kB / 0.5247 GB, free: 88.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.6731, allocations: 35.97 kB / 0.5248 GB, free: 88.06 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/0.6733, allocations: 83.91 kB / 0.5249 GB, free: 87.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000233/0.6736, allocations: 283.7 kB / 0.5251 GB, free: 87.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001762/0.6738, allocations: 201.6 kB / 0.5253 GB, free: 87.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6738, allocations: 4 kB / 0.5253 GB, free: 87.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004458/0.6742, allocations: 91.94 kB / 0.5254 GB, free: 87.41 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.000231/0.6745, allocations: 137 kB / 0.5255 GB, free: 87.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009812/0.6754, allocations: 0.551 MB / 0.5261 GB, free: 86.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.6755, allocations: 0 / 0.5261 GB, free: 86.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005444/0.676, allocations: 350.1 kB / 0.5264 GB, free: 86.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.6773, allocations: 276.2 kB / 0.5267 GB, free: 86.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.6785, allocations: 0.7738 MB / 0.5274 GB, free: 85.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.6788, allocations: 0.827 MB / 0.5282 GB, free: 84.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001396/0.6802, allocations: 0.7354 MB / 0.529 GB, free: 83.69 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007441/0.6809, allocations: 258.8 kB / 0.5292 GB, free: 83.44 MB / 378.7 MB Notification: Performance of SimCode: time 1.032e-06/0.681, allocations: 0 / 0.5292 GB, free: 83.44 MB / 378.7 MB Notification: Performance of Templates: time 0.01273/0.6937, allocations: 9.967 MB / 0.5389 GB, free: 73.38 MB / 378.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