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.000942/0.000942, allocations: 172.6 kB / 14.1 MB, free: 1.223 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.353/1.353, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0007755/0.0007756, allocations: 90.69 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.163e-05/2.166e-05, allocations: 4 kB / 322.4 MB, free: 17.37 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08007/0.0801, allocations: 47.57 MB / 370 MB, free: 1.73 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3123/0.3925, allocations: 82.47 MB / 452.5 MB, free: 10.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000183/0.3927, allocations: 76.27 kB / 452.6 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08066/0.4734, allocations: 42.9 MB / 495.5 MB, free: 1.523 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4734, allocations: 0 / 495.5 MB, free: 1.523 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.401e-05/0.4734, allocations: 12 kB / 495.5 MB, free: 1.512 MB / 362.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.001025/0.4745, allocations: 0.6857 MB / 496.2 MB, free: 0.7656 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.4745, allocations: 8.031 kB / 496.2 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.4747, allocations: 47.44 kB / 496.2 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006228/0.4753, allocations: 347.2 kB / 496.6 MB, free: 332 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.111e-05/0.4754, allocations: 36.73 kB / 496.6 MB, free: 296 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.097e-05/0.4755, allocations: 32 kB / 496.6 MB, free: 264 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008203/0.4763, allocations: 471.5 kB / 497.1 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.4763, allocations: 7.938 kB / 497.1 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.316e-05/0.4764, allocations: 12 kB / 497.1 MB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.4764, allocations: 8 kB / 497.1 MB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006323/0.4771, allocations: 351 kB / 497.5 MB, free: 15.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.4788, allocations: 1.086 MB / 498.5 MB, free: 14.28 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008831/0.4797, allocations: 407.6 kB / 498.9 MB, free: 13.87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002791/0.48, allocations: 161.4 kB / 499.1 MB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.291e-05/0.4801, allocations: 8.219 kB / 499.1 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004872/0.4806, allocations: 319.2 kB / 499.4 MB, free: 13.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 1.914e-06/0.4806, allocations: 0 / 499.4 MB, free: 13.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.0009604/0.4816, allocations: 0.5315 MB / 499.9 MB, free: 12.83 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.511e-05/0.4816, allocations: 114.8 kB / 0.4883 GB, free: 12.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.482, allocations: 274.8 kB / 0.4886 GB, free: 12.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.47e-05/0.482, allocations: 37.7 kB / 0.4886 GB, free: 12.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.4821, allocations: 168.7 kB / 0.4888 GB, free: 12.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.4823, allocations: 82.98 kB / 0.4889 GB, free: 12.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.084e-05/0.4823, allocations: 12 kB / 0.4889 GB, free: 12.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4825, allocations: 342.8 kB / 0.4892 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003091/0.4828, allocations: 160.8 kB / 0.4894 GB, free: 11.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000345/0.4832, allocations: 216.6 kB / 0.4896 GB, free: 11.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003897/0.4836, allocations: 236.1 kB / 0.4898 GB, free: 11.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.4836, allocations: 0 / 0.4898 GB, free: 11.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009751/0.4845, allocations: 0.6037 MB / 0.4904 GB, free: 10.53 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.096e-05/0.4846, allocations: 55.41 kB / 0.4904 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.4846, allocations: 4 kB / 0.4904 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.4847, allocations: 12.02 kB / 0.4905 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.4848, allocations: 63.84 kB / 0.4905 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.4848, allocations: 4 kB / 0.4905 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003245/0.4852, allocations: 47.88 kB / 0.4906 GB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002684/0.4854, allocations: 279.7 kB / 0.4908 GB, free: 10.06 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 () * 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.000229/0.4857, allocations: 220.2 kB / 0.491 GB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.571e-05/0.4858, allocations: 31.62 kB / 0.4911 GB, free: 9.793 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.239e-05/0.4858, allocations: 39.08 kB / 0.4911 GB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.4858, allocations: 4 kB / 0.4911 GB, free: 9.754 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4859, allocations: 0 / 0.4911 GB, free: 9.754 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.4859, allocations: 4 kB / 0.4911 GB, free: 9.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005688/0.4864, allocations: 461.3 kB / 0.4916 GB, free: 9.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.4865, allocations: 0 / 0.4916 GB, free: 9.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.4866, allocations: 59.91 kB / 0.4916 GB, free: 9.191 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.4866, allocations: 3.984 kB / 0.4916 GB, free: 9.188 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.37e-05/0.4867, allocations: 47.92 kB / 0.4917 GB, free: 9.141 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.4867, allocations: 0 / 0.4917 GB, free: 9.141 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4867, allocations: 0 / 0.4917 GB, free: 9.141 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009073/0.4876, allocations: 0.5701 MB / 0.4922 GB, free: 8.539 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003351/0.4879, allocations: 196.6 kB / 0.4924 GB, free: 8.328 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.817e-05/0.4881, allocations: 15.98 kB / 0.4924 GB, free: 8.312 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.4883, allocations: 47.81 kB / 0.4925 GB, free: 8.266 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002124/0.4885, allocations: 83.91 kB / 0.4926 GB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002594/0.4888, allocations: 279.7 kB / 0.4928 GB, free: 7.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002/0.489, allocations: 203.1 kB / 0.493 GB, free: 7.707 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.489, allocations: 0 / 0.493 GB, free: 7.707 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004105/0.4894, allocations: 92 kB / 0.4931 GB, free: 7.617 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) * 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.0002257/0.4896, allocations: 133.9 kB / 0.4932 GB, free: 7.477 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008112/0.4905, allocations: 0.5181 MB / 0.4937 GB, free: 6.934 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4905, allocations: 0 / 0.4937 GB, free: 6.934 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000416/0.4909, allocations: 334.7 kB / 0.4941 GB, free: 6.578 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/0.4921, allocations: 291.2 kB / 0.4943 GB, free: 6.297 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.4932, allocations: 0.5306 MB / 0.4948 GB, free: 5.746 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.4936, allocations: 0.8189 MB / 0.4956 GB, free: 4.895 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001307/0.4949, allocations: 0.7431 MB / 0.4964 GB, free: 4.148 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000696/0.4956, allocations: 258.8 kB / 0.4966 GB, free: 3.898 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4956, allocations: 4 kB / 0.4966 GB, free: 3.895 MB / 378.7 MB Notification: Performance of Templates: time 0.01412/0.5098, allocations: 9.959 MB / 0.5063 GB, free: 9.711 MB / 394.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