Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001834/0.001834, allocations: 195.8 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008699/0.00087, allocations: 91.88 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.464e-06/7.484e-06, allocations: 0 / 343.1 MB, free: 8.684 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08187/0.08189, allocations: 51.48 MB / 394.6 MB, free: 5.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2166/0.2986, allocations: 83.48 MB / 478.1 MB, free: 9.414 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001668/0.2988, allocations: 69.53 kB / 478.2 MB, free: 9.391 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.07775/0.3765, allocations: 42.52 MB / 0.5085 GB, free: 4.941 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.412e-05/0.3766, allocations: 8 kB / 0.5085 GB, free: 4.934 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.001069/0.3777, allocations: 0.7041 MB / 0.5092 GB, free: 4.172 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.3777, allocations: 8.031 kB / 0.5092 GB, free: 4.164 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001914/0.3779, allocations: 43.53 kB / 0.5092 GB, free: 4.121 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000552/0.3785, allocations: 346.6 kB / 0.5096 GB, free: 3.742 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.952e-05/0.3785, allocations: 12 kB / 0.5096 GB, free: 3.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.68e-05/0.3786, allocations: 24 kB / 0.5096 GB, free: 3.707 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006676/0.3793, allocations: 341.1 kB / 0.5099 GB, free: 3.371 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007246/0.38, allocations: 436.5 kB / 0.5103 GB, free: 2.938 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.38, allocations: 0 / 0.5103 GB, free: 2.938 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.424e-05/0.3801, allocations: 7.938 kB / 0.5103 GB, free: 2.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.3801, allocations: 8 kB / 0.5103 GB, free: 2.922 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001798/0.3819, allocations: 1.014 MB / 0.5113 GB, free: 1.867 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007811/0.3827, allocations: 392.8 kB / 0.5117 GB, free: 1.477 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/0.383, allocations: 145.4 kB / 0.5118 GB, free: 1.332 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.071e-05/0.3831, allocations: 4.281 kB / 0.5119 GB, free: 1.328 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004087/0.3835, allocations: 315.3 kB / 0.5122 GB, free: 1.008 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 1.913e-06/0.3835, allocations: 0 / 0.5122 GB, free: 1.008 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.000806/0.3843, allocations: 434.5 kB / 0.5126 GB, free: 0.5781 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.42e-05/0.3844, allocations: 110.8 kB / 0.5127 GB, free: 456 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002693/0.3846, allocations: 264.8 kB / 0.5129 GB, free: 188 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.865e-05/0.3847, allocations: 33.7 kB / 0.513 GB, free: 148 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.306e-05/0.3848, allocations: 144.7 kB / 0.5131 GB, free: 0 / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.385, allocations: 83.05 kB / 0.5132 GB, free: 15.91 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.336e-05/0.385, allocations: 4 kB / 0.5132 GB, free: 15.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.3851, allocations: 338.8 kB / 0.5135 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.3854, allocations: 152.8 kB / 0.5136 GB, free: 15.42 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002909/0.3857, allocations: 207.7 kB / 0.5138 GB, free: 15.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002988/0.386, allocations: 171.9 kB / 0.514 GB, free: 15.03 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.386, allocations: 0 / 0.514 GB, free: 15.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008483/0.3869, allocations: 0.5036 MB / 0.5145 GB, free: 14.53 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.3869, allocations: 4 kB / 0.5145 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.3869, allocations: 4 kB / 0.5145 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.3869, allocations: 5.406 kB / 0.5145 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001588/0.3871, allocations: 59.91 kB / 0.5146 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.3871, allocations: 0 / 0.5146 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003304/0.3874, allocations: 51.78 kB / 0.5146 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002892/0.3877, allocations: 283.7 kB / 0.5149 GB, free: 14.13 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.0002251/0.388, allocations: 196.2 kB / 0.5151 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.118e-05/0.3881, allocations: 35.62 kB / 0.5151 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.799e-05/0.3881, allocations: 34.95 kB / 0.5151 GB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3881, allocations: 4 kB / 0.5152 GB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3882, allocations: 0 / 0.5152 GB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.3882, allocations: 0 / 0.5152 GB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005448/0.3887, allocations: 401.9 kB / 0.5155 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3887, allocations: 0 / 0.5155 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/0.3889, allocations: 59.89 kB / 0.5156 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.3889, allocations: 0 / 0.5156 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-05/0.389, allocations: 51.48 kB / 0.5156 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.389, allocations: 0 / 0.5156 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.389, allocations: 3.984 kB / 0.5156 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007674/0.3898, allocations: 484.4 kB / 0.5161 GB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002877/0.3901, allocations: 196.7 kB / 0.5163 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001352/0.3902, allocations: 8 kB / 0.5163 GB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002599/0.3905, allocations: 35.88 kB / 0.5163 GB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002159/0.3907, allocations: 79.91 kB / 0.5164 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002635/0.391, allocations: 287.7 kB / 0.5167 GB, free: 12.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001769/0.3912, allocations: 185.2 kB / 0.5169 GB, free: 12.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004223/0.3916, allocations: 72 kB / 0.5169 GB, free: 11.95 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.0002238/0.3918, allocations: 133.8 kB / 0.5171 GB, free: 11.81 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007088/0.3925, allocations: 455 kB / 0.5175 GB, free: 11.35 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3926, allocations: 0 / 0.5175 GB, free: 11.35 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003915/0.393, allocations: 283.2 kB / 0.5178 GB, free: 11.06 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.3941, allocations: 261.2 kB / 0.518 GB, free: 10.82 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.3954, allocations: 0.5147 MB / 0.5185 GB, free: 10.29 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001973/0.3973, allocations: 1.48 MB / 0.52 GB, free: 8.812 MB / 394.7 MB Notification: Performance of SimCode: time 7.12e-07/0.3973, allocations: 1.406 kB / 0.52 GB, free: 8.812 MB / 394.7 MB Notification: Performance of Templates: time 0.01754/0.4149, allocations: 13.59 MB / 0.5332 GB, free: 10.85 MB / 410.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches