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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 184.2 kB / 8.136 MB, free: 2.207 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.144/1.144, allocations: 221.4 MB / 229.9 MB, free: 3.07 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.0008785/0.0008788, allocations: 101.7 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.001e-06/6.111e-06, allocations: 0 / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1791, allocations: 50.39 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08083/0.26, allocations: 82.67 MB / 469.6 MB, free: 4.145 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001785/0.2602, allocations: 71.91 kB / 469.6 MB, free: 4.074 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.2104/0.4707, allocations: 42.48 MB / 0.5001 GB, free: 102 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.194e-05/0.4707, allocations: 6.812 kB / 0.5001 GB, free: 102 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.0008987/0.4716, allocations: 0.6948 MB / 0.5008 GB, free: 101.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.4717, allocations: 10.34 kB / 0.5008 GB, free: 101.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.4719, allocations: 42.94 kB / 0.5009 GB, free: 101.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004806/0.4724, allocations: 345.5 kB / 0.5012 GB, free: 101.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.4724, allocations: 13.56 kB / 0.5012 GB, free: 101.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.373e-05/0.4725, allocations: 24.19 kB / 0.5012 GB, free: 101.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005795/0.4731, allocations: 347.6 kB / 0.5015 GB, free: 101.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006345/0.4737, allocations: 439.4 kB / 0.502 GB, free: 101.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.4737, allocations: 0 / 0.502 GB, free: 101.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.444e-05/0.4738, allocations: 0 / 0.502 GB, free: 101.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.4738, allocations: 7.938 kB / 0.502 GB, free: 101.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.4754, allocations: 1.02 MB / 0.503 GB, free: 101 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006826/0.4761, allocations: 383.8 kB / 0.5033 GB, free: 101 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/0.4763, allocations: 150.3 kB / 0.5035 GB, free: 100.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.883e-05/0.4764, allocations: 3.906 kB / 0.5035 GB, free: 100.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003356/0.4767, allocations: 304.5 kB / 0.5038 GB, free: 100.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 2.375e-06/0.4767, allocations: 7.688 kB / 0.5038 GB, free: 100.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.0006855/0.4774, allocations: 439.6 kB / 0.5042 GB, free: 100.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.4775, allocations: 112.6 kB / 0.5043 GB, free: 100.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.4777, allocations: 263.1 kB / 0.5046 GB, free: 100.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.08e-05/0.4778, allocations: 37.14 kB / 0.5046 GB, free: 100.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.403e-05/0.4778, allocations: 152.6 kB / 0.5047 GB, free: 100.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.835e-05/0.4779, allocations: 80.23 kB / 0.5048 GB, free: 100.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.265e-05/0.478, allocations: 6.375 kB / 0.5048 GB, free: 100.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.875e-05/0.478, allocations: 336.5 kB / 0.5051 GB, free: 100.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/0.4783, allocations: 156.1 kB / 0.5053 GB, free: 100.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.4785, allocations: 201.6 kB / 0.5055 GB, free: 100.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/0.4788, allocations: 175.3 kB / 0.5057 GB, free: 100.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.4788, allocations: 0.5625 kB / 0.5057 GB, free: 100.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007182/0.4795, allocations: 0.496 MB / 0.5061 GB, free: 99.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.4795, allocations: 7.562 kB / 0.5061 GB, free: 99.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.4795, allocations: 0 / 0.5061 GB, free: 99.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.4796, allocations: 3.938 kB / 0.5061 GB, free: 99.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.4797, allocations: 57.5 kB / 0.5062 GB, free: 99.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.4797, allocations: 5.344 kB / 0.5062 GB, free: 99.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003104/0.48, allocations: 51.56 kB / 0.5063 GB, free: 99.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002888/0.4803, allocations: 274.8 kB / 0.5065 GB, free: 99.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 () * 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.000215/0.4806, allocations: 205 kB / 0.5067 GB, free: 99.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.987e-05/0.4806, allocations: 32.09 kB / 0.5067 GB, free: 99.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.214e-05/0.4807, allocations: 31.39 kB / 0.5068 GB, free: 99.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.4807, allocations: 3.844 kB / 0.5068 GB, free: 99.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4807, allocations: 0 / 0.5068 GB, free: 99.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.4808, allocations: 4.078 kB / 0.5068 GB, free: 99.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005217/0.4813, allocations: 403.8 kB / 0.5072 GB, free: 99.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.4813, allocations: 0.5 kB / 0.5072 GB, free: 99.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000142/0.4814, allocations: 52.75 kB / 0.5072 GB, free: 99.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.4815, allocations: 1.656 kB / 0.5072 GB, free: 99.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.974e-05/0.4816, allocations: 48.81 kB / 0.5073 GB, free: 99.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.4816, allocations: 1.531 kB / 0.5073 GB, free: 99.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.4816, allocations: 1.156 kB / 0.5073 GB, free: 99.46 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000854/0.4824, allocations: 479.7 kB / 0.5077 GB, free: 99.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002431/0.4827, allocations: 197.9 kB / 0.5079 GB, free: 99.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001335/0.4828, allocations: 8.312 kB / 0.5079 GB, free: 99.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002466/0.4831, allocations: 42.59 kB / 0.508 GB, free: 99.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001916/0.4833, allocations: 77.88 kB / 0.508 GB, free: 99.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002292/0.4835, allocations: 285.4 kB / 0.5083 GB, free: 99.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001395/0.4837, allocations: 184.4 kB / 0.5085 GB, free: 99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004057/0.4841, allocations: 76.5 kB / 0.5086 GB, free: 99 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.0001684/0.4843, allocations: 138.4 kB / 0.5087 GB, free: 98.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006228/0.4849, allocations: 456.1 kB / 0.5091 GB, free: 98.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.4849, allocations: 0 / 0.5091 GB, free: 98.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003289/0.4852, allocations: 289.8 kB / 0.5094 GB, free: 98.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.4863, allocations: 267.9 kB / 0.5097 GB, free: 98.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.4874, allocations: 0.5172 MB / 0.5102 GB, free: 97.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001554/0.489, allocations: 1.477 MB / 0.5116 GB, free: 96.47 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.489, allocations: 4 kB / 0.5116 GB, free: 96.47 MB / 378.7 MB Notification: Performance of Templates: time 0.01379/0.5028, allocations: 13.59 MB / 0.5249 GB, free: 83.33 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