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.001067/0.001067, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0008869/0.0008868, allocations: 95.41 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.687e-05/1.691e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08662/0.08665, allocations: 50.41 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2784/0.3651, allocations: 82.73 MB / 470.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/0.3653, allocations: 75.95 kB / 470.3 MB, free: 12.05 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07916/0.4445, allocations: 43.12 MB / 0.5014 GB, free: 1.023 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4446, allocations: 0 / 0.5014 GB, free: 1.023 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.152e-05/0.4446, allocations: 8 kB / 0.5014 GB, free: 1.016 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.0008436/0.4454, allocations: 0.6861 MB / 0.502 GB, free: 276 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.4455, allocations: 8.031 kB / 0.502 GB, free: 268 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.4456, allocations: 47.44 kB / 0.5021 GB, free: 220 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004706/0.4461, allocations: 359.1 kB / 0.5024 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.607e-05/0.4461, allocations: 16 kB / 0.5024 GB, free: 15.8 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.221e-05/0.4462, allocations: 20 kB / 0.5025 GB, free: 15.78 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005328/0.4467, allocations: 333.4 kB / 0.5028 GB, free: 15.46 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006764/0.4474, allocations: 433.8 kB / 0.5032 GB, free: 15.03 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.4474, allocations: 3.984 kB / 0.5032 GB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.601e-05/0.4475, allocations: 0 / 0.5032 GB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.4475, allocations: 8 kB / 0.5032 GB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001577/0.4491, allocations: 0.9991 MB / 0.5042 GB, free: 13.97 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007257/0.4498, allocations: 395.4 kB / 0.5046 GB, free: 13.58 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/0.4501, allocations: 150.8 kB / 0.5047 GB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.952e-05/0.4501, allocations: 288 / 0.5047 GB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003991/0.4506, allocations: 315.3 kB / 0.505 GB, free: 13.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 3.266e-06/0.4506, allocations: 0 / 0.505 GB, free: 13.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007578/0.4513, allocations: 464.8 kB / 0.5054 GB, free: 12.65 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.29e-05/0.4514, allocations: 122.7 kB / 0.5056 GB, free: 12.5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000258/0.4517, allocations: 262 kB / 0.5058 GB, free: 12.25 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.806e-05/0.4518, allocations: 37.69 kB / 0.5058 GB, free: 12.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.518e-05/0.4519, allocations: 168.7 kB / 0.506 GB, free: 12.04 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.642e-05/0.452, allocations: 75.02 kB / 0.5061 GB, free: 11.96 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.195e-05/0.452, allocations: 7.984 kB / 0.5061 GB, free: 11.95 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.688e-05/0.4521, allocations: 334.8 kB / 0.5064 GB, free: 11.62 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/0.4523, allocations: 152.8 kB / 0.5066 GB, free: 11.47 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002501/0.4526, allocations: 203.7 kB / 0.5067 GB, free: 11.26 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002416/0.4528, allocations: 163.9 kB / 0.5069 GB, free: 11.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.4529, allocations: 0 / 0.5069 GB, free: 11.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000731/0.4536, allocations: 0.5218 MB / 0.5074 GB, free: 10.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.396e-05/0.4536, allocations: 59.41 kB / 0.5075 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.4537, allocations: 7.953 kB / 0.5075 GB, free: 10.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.4537, allocations: 4 kB / 0.5075 GB, free: 10.49 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.4538, allocations: 59.92 kB / 0.5075 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.4539, allocations: 4 kB / 0.5075 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003017/0.4542, allocations: 43.81 kB / 0.5076 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002443/0.4544, allocations: 279.7 kB / 0.5078 GB, free: 10.11 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.0002177/0.4547, allocations: 201.5 kB / 0.508 GB, free: 9.891 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.484e-05/0.4547, allocations: 35.61 kB / 0.5081 GB, free: 9.855 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.779e-05/0.4548, allocations: 31.41 kB / 0.5081 GB, free: 9.824 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.4548, allocations: 7.953 kB / 0.5081 GB, free: 9.816 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.4548, allocations: 7.984 kB / 0.5081 GB, free: 9.809 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.4548, allocations: 0 / 0.5081 GB, free: 9.809 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004977/0.4553, allocations: 401.9 kB / 0.5085 GB, free: 9.379 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.4554, allocations: 4 kB / 0.5085 GB, free: 9.375 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.4555, allocations: 47.91 kB / 0.5086 GB, free: 9.328 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.4555, allocations: 0 / 0.5086 GB, free: 9.328 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.478e-05/0.4556, allocations: 51.97 kB / 0.5086 GB, free: 9.277 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.4556, allocations: 0 / 0.5086 GB, free: 9.277 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4556, allocations: 4.156 kB / 0.5086 GB, free: 9.273 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000678/0.4563, allocations: 0.4886 MB / 0.5091 GB, free: 8.766 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002445/0.4565, allocations: 192.6 kB / 0.5093 GB, free: 8.559 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.956e-05/0.4566, allocations: 8 kB / 0.5093 GB, free: 8.551 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.4569, allocations: 43.81 kB / 0.5093 GB, free: 8.508 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/0.4571, allocations: 87.91 kB / 0.5094 GB, free: 8.422 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002366/0.4573, allocations: 279.7 kB / 0.5097 GB, free: 8.148 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001696/0.4575, allocations: 189.9 kB / 0.5098 GB, free: 7.961 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4575, allocations: 3.938 kB / 0.5099 GB, free: 7.957 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003833/0.4579, allocations: 72 kB / 0.5099 GB, free: 7.887 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.0002012/0.4581, allocations: 141.4 kB / 0.5101 GB, free: 7.742 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006326/0.4587, allocations: 0.4951 MB / 0.5105 GB, free: 7.223 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4587, allocations: 0 / 0.5105 GB, free: 7.223 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003527/0.4591, allocations: 330.5 kB / 0.5109 GB, free: 6.875 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.4603, allocations: 280.9 kB / 0.5111 GB, free: 6.613 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009296/0.4612, allocations: 0.5098 MB / 0.5116 GB, free: 6.074 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003651/0.4616, allocations: 0.8189 MB / 0.5124 GB, free: 5.23 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001238/0.4629, allocations: 0.7396 MB / 0.5131 GB, free: 4.492 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006957/0.4636, allocations: 262.8 kB / 0.5134 GB, free: 4.234 MB / 394.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4636, allocations: 0 / 0.5134 GB, free: 4.234 MB / 394.7 MB Notification: Performance of Templates: time 0.01325/0.4768, allocations: 9.736 MB / 0.5229 GB, free: 10.32 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