Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001525/0.001525, allocations: 186.2 kB / 16.41 MB, free: 5.727 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.925/1.925, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.00113/0.00113, allocations: 88.42 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005839/0.0005842, allocations: 15.98 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.383/0.3836, allocations: 47.56 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1333/0.517, allocations: 82.57 MB / 457.1 MB, free: 14.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.5174, allocations: 71.97 kB / 457.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1494/0.6668, allocations: 42.6 MB / 499.8 MB, free: 3.578 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.6669, allocations: 4 kB / 499.8 MB, free: 3.574 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.427e-05/0.6669, allocations: 15.94 kB / 499.8 MB, free: 3.559 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.001474/0.6684, allocations: 0.725 MB / 0.4888 GB, free: 2.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.6685, allocations: 8.031 kB / 0.4888 GB, free: 2.762 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002014/0.6687, allocations: 47.44 kB / 0.4888 GB, free: 2.715 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007249/0.6694, allocations: 343.2 kB / 0.4892 GB, free: 2.344 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.838e-05/0.6695, allocations: 36.61 kB / 0.4892 GB, free: 2.309 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001402/0.6696, allocations: 32 kB / 0.4892 GB, free: 2.277 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.6712, allocations: 497.7 kB / 0.4897 GB, free: 1.781 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.6712, allocations: 0 / 0.4897 GB, free: 1.781 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.6713, allocations: 12 kB / 0.4897 GB, free: 1.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.866e-05/0.6713, allocations: 8 kB / 0.4897 GB, free: 1.762 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.6727, allocations: 390.4 kB / 0.4901 GB, free: 1.383 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002982/0.6758, allocations: 1.081 MB / 0.4912 GB, free: 252 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2745/0.9503, allocations: 455.6 kB / 0.4916 GB, free: 103.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001731/0.9505, allocations: 3.625 kB / 0.4916 GB, free: 103.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001112/0.9516, allocations: 345.3 kB / 0.4919 GB, free: 103.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 3.697e-06/0.9516, allocations: 0 / 0.4919 GB, free: 103.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.002695/0.9543, allocations: 0.7237 MB / 0.4926 GB, free: 103.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.077e-05/0.9545, allocations: 117.3 kB / 0.4927 GB, free: 103.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000445/0.9549, allocations: 275.6 kB / 0.493 GB, free: 103.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.568e-05/0.955, allocations: 46.09 kB / 0.493 GB, free: 103.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.9552, allocations: 223.8 kB / 0.4933 GB, free: 103 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.9553, allocations: 76.95 kB / 0.4933 GB, free: 103 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.9554, allocations: 10.38 kB / 0.4933 GB, free: 103 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.358e-05/0.9555, allocations: 328.1 kB / 0.4937 GB, free: 102.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006299/0.9561, allocations: 189.8 kB / 0.4938 GB, free: 102.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006592/0.9568, allocations: 228.2 kB / 0.4941 GB, free: 102.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007018/0.9575, allocations: 251.9 kB / 0.4943 GB, free: 102.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.9576, allocations: 0 / 0.4943 GB, free: 102.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001874/0.9594, allocations: 0.6284 MB / 0.4949 GB, free: 102.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.98e-05/0.9595, allocations: 58.84 kB / 0.495 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.9596, allocations: 5.094 kB / 0.495 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.572e-05/0.9596, allocations: 3.375 kB / 0.495 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002414/0.9598, allocations: 61.12 kB / 0.495 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.9599, allocations: 4.062 kB / 0.495 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005394/0.9604, allocations: 57.62 kB / 0.4951 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004208/0.9608, allocations: 282.8 kB / 0.4954 GB, free: 102.4 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.0005421/0.9614, allocations: 285.7 kB / 0.4956 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.9616, allocations: 31.03 kB / 0.4957 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.444e-05/0.9617, allocations: 36.5 kB / 0.4957 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.9617, allocations: 6.344 kB / 0.4957 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/0.9617, allocations: 0 / 0.4957 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.9617, allocations: 1.188 kB / 0.4957 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008233/0.9626, allocations: 470.8 kB / 0.4962 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.9626, allocations: 1.469 kB / 0.4962 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001829/0.9628, allocations: 48.5 kB / 0.4962 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.536e-06/0.9628, allocations: 6.859 kB / 0.4962 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.9629, allocations: 50.47 kB / 0.4963 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.9629, allocations: 1.062 kB / 0.4963 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.9629, allocations: 1.156 kB / 0.4963 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001729/0.9647, allocations: 0.6098 MB / 0.4969 GB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004191/0.9651, allocations: 189.5 kB / 0.497 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001576/0.9653, allocations: 16.81 kB / 0.4971 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004161/0.9657, allocations: 46.97 kB / 0.4971 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003176/0.9661, allocations: 84.25 kB / 0.4972 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004167/0.9665, allocations: 281.5 kB / 0.4974 GB, free: 101.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003056/0.9668, allocations: 195.6 kB / 0.4976 GB, free: 101.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.563e-06/0.9668, allocations: 0 / 0.4976 GB, free: 101.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006929/0.9675, allocations: 93.12 kB / 0.4977 GB, free: 101.6 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.0002549/0.9678, allocations: 137.7 kB / 0.4979 GB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.9694, allocations: 0.553 MB / 0.4984 GB, free: 101.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.9694, allocations: 1 kB / 0.4984 GB, free: 101.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008167/0.9702, allocations: 350.6 kB / 0.4987 GB, free: 101.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/0.9722, allocations: 297.5 kB / 0.499 GB, free: 101.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002023/0.9742, allocations: 0.8233 MB / 0.4998 GB, free: 100.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003705/0.9746, allocations: 0.8171 MB / 0.5006 GB, free: 100.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001686/0.9763, allocations: 363.6 kB / 0.501 GB, free: 99.97 MB / 378.7 MB Notification: Performance of SimCode: time 2.053e-06/0.9764, allocations: 0 / 0.501 GB, free: 99.97 MB / 378.7 MB Notification: Performance of Templates: time 0.01312/0.9895, allocations: 8.143 MB / 0.5089 GB, free: 98.91 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,FF.RS1.TD1.x,FF.RS2.TD1.x Variables in the result:CLK.period,CLK.startTime,CLK.width,CLK.y,FF.And1.n,FF.And1.x[1],FF.And1.x[2],FF.And1.x[3],FF.And1.y,FF.And2.n,FF.And2.x[1],FF.And2.x[2],FF.And2.x[3],FF.And2.y,FF.And3.n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And4.n,FF.And4.x[1],FF.And4.x[2],FF.And4.y,FF.Not1.x,FF.Not1.y,FF.RS1.Nor1.n,FF.RS1.Nor1.x[1],FF.RS1.Nor1.x[2],FF.RS1.Nor1.y,FF.RS1.Nor2.n,FF.RS1.Nor2.x[1],FF.RS1.Nor2.x[2],FF.RS1.Nor2.y,FF.RS1.TD1.delayTime,FF.RS1.TD1.x,FF.RS1.TD1.y,FF.RS1.TD1.y0,FF.RS1.delayTime,FF.RS1.q,FF.RS1.q0,FF.RS1.qn,FF.RS1.r,FF.RS1.s,FF.RS2.Nor1.n,FF.RS2.Nor1.x[1],FF.RS2.Nor1.x[2],FF.RS2.Nor1.y,FF.RS2.Nor2.n,FF.RS2.Nor2.x[1],FF.RS2.Nor2.x[2],FF.RS2.Nor2.y,FF.RS2.TD1.delayTime,FF.RS2.TD1.x,FF.RS2.TD1.y,FF.RS2.TD1.y0,FF.RS2.delayTime,FF.RS2.q,FF.RS2.q0,FF.RS2.qn,FF.RS2.r,FF.RS2.s,FF.clk,FF.delayTime,FF.j,FF.k,FF.q,FF.q0,FF.qn,J.n,J.t[1],J.t[2],J.t[3],J.t[4],J.x[1],J.x[2],J.x[3],J.x[4],J.y,J.y0,K.n,K.t[1],K.t[2],K.t[3],K.t[4],K.x[1],K.x[2],K.x[3],K.x[4],K.y,K.y0,time