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.001378/0.001378, allocations: 176.4 kB / 17.4 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.552/1.552, allocations: 223.3 MB / 241.4 MB, free: 9.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008902/0.0008902, allocations: 99.69 kB / 292.6 MB, free: 10.58 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003586, allocations: 12 kB / 352.3 MB, free: 14.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2552, allocations: 50.4 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1066/0.3619, allocations: 83.5 MB / 486.2 MB, free: 12.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001699/0.3621, allocations: 75.97 kB / 486.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3212/0.6833, allocations: 43.12 MB / 0.517 GB, free: 96.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.526e-06/0.6834, allocations: 3.984 kB / 0.517 GB, free: 96.31 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.106e-05/0.6834, allocations: 6.75 kB / 0.517 GB, free: 96.31 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.001254/0.6847, allocations: 0.7232 MB / 0.5177 GB, free: 95.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.6847, allocations: 10.75 kB / 0.5178 GB, free: 95.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002077/0.685, allocations: 48.5 kB / 0.5178 GB, free: 95.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005503/0.6855, allocations: 365.2 kB / 0.5181 GB, free: 95.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.963e-05/0.6856, allocations: 23.53 kB / 0.5182 GB, free: 95.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.6857, allocations: 32.88 kB / 0.5182 GB, free: 95.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008848/0.6866, allocations: 0.4894 MB / 0.5187 GB, free: 95.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.6866, allocations: 192 / 0.5187 GB, free: 95.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.961e-05/0.6867, allocations: 18.75 kB / 0.5187 GB, free: 95.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.6867, allocations: 7.031 kB / 0.5187 GB, free: 95.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007193/0.6874, allocations: 397 kB / 0.5191 GB, free: 94.94 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.6892, allocations: 1.072 MB / 0.5201 GB, free: 93.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009187/0.6901, allocations: 455.3 kB / 0.5206 GB, free: 93.54 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002954/0.6904, allocations: 177.3 kB / 0.5207 GB, free: 93.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.949e-05/0.6905, allocations: 8.266 kB / 0.5207 GB, free: 93.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000462/0.691, allocations: 346.8 kB / 0.5211 GB, free: 93.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 2.475e-06/0.691, allocations: 3.938 kB / 0.5211 GB, free: 93.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.001213/0.6922, allocations: 0.7201 MB / 0.5218 GB, free: 92.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.6923, allocations: 106.8 kB / 0.5219 GB, free: 92.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/0.6926, allocations: 306.4 kB / 0.5222 GB, free: 91.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.127e-05/0.6927, allocations: 41.7 kB / 0.5222 GB, free: 91.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.6928, allocations: 172.2 kB / 0.5224 GB, free: 91.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.741e-05/0.6929, allocations: 77.91 kB / 0.5224 GB, free: 91.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.289e-05/0.6929, allocations: 12 kB / 0.5225 GB, free: 91.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.96e-05/0.693, allocations: 346.8 kB / 0.5228 GB, free: 91.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003069/0.6933, allocations: 184.3 kB / 0.523 GB, free: 91.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000309/0.6936, allocations: 228.5 kB / 0.5232 GB, free: 90.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006567/0.6943, allocations: 0.5138 MB / 0.5237 GB, free: 90.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.6943, allocations: 0 / 0.5237 GB, free: 90.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009514/0.6953, allocations: 0.6392 MB / 0.5243 GB, free: 89.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.454e-05/0.6953, allocations: 59.41 kB / 0.5244 GB, free: 89.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.6953, allocations: 0 / 0.5244 GB, free: 89.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.6954, allocations: 4 kB / 0.5244 GB, free: 89.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.6955, allocations: 63.8 kB / 0.5244 GB, free: 89.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.6955, allocations: 0 / 0.5244 GB, free: 89.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003098/0.6958, allocations: 67.59 kB / 0.5245 GB, free: 89.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00025/0.6961, allocations: 275.3 kB / 0.5248 GB, free: 89.13 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.0003516/0.6965, allocations: 284.9 kB / 0.525 GB, free: 88.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.742e-05/0.6965, allocations: 31.72 kB / 0.5251 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.986e-05/0.6966, allocations: 38.95 kB / 0.5251 GB, free: 88.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.6966, allocations: 7.844 kB / 0.5251 GB, free: 88.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.6966, allocations: 0 / 0.5251 GB, free: 88.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.6967, allocations: 3.984 kB / 0.5251 GB, free: 88.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004917/0.6971, allocations: 475.5 kB / 0.5256 GB, free: 88.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.6972, allocations: 0 / 0.5256 GB, free: 88.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.899e-05/0.6973, allocations: 47.97 kB / 0.5256 GB, free: 88.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.6973, allocations: 0 / 0.5256 GB, free: 88.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.46e-05/0.6973, allocations: 47.97 kB / 0.5257 GB, free: 88.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.6974, allocations: 7.75 kB / 0.5257 GB, free: 88.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.6974, allocations: 3.938 kB / 0.5257 GB, free: 88.15 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008865/0.6983, allocations: 0.6022 MB / 0.5263 GB, free: 87.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002659/0.6985, allocations: 188.7 kB / 0.5264 GB, free: 87.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.527e-05/0.6986, allocations: 20 kB / 0.5265 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.6989, allocations: 43.62 kB / 0.5265 GB, free: 87.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002018/0.6991, allocations: 83.91 kB / 0.5266 GB, free: 87.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001997/0.6993, allocations: 287.7 kB / 0.5268 GB, free: 86.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001816/0.6995, allocations: 197.9 kB / 0.527 GB, free: 86.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.6995, allocations: 4 kB / 0.527 GB, free: 86.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004472/0.6999, allocations: 87.56 kB / 0.5271 GB, free: 86.61 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.0002217/0.7002, allocations: 149 kB / 0.5273 GB, free: 86.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008639/0.701, allocations: 0.5526 MB / 0.5278 GB, free: 85.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.7011, allocations: 0 / 0.5278 GB, free: 85.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004056/0.7015, allocations: 354.3 kB / 0.5281 GB, free: 85.53 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.7026, allocations: 283.3 kB / 0.5284 GB, free: 85.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001464/0.7041, allocations: 0.7783 MB / 0.5292 GB, free: 84.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.7045, allocations: 0.8033 MB / 0.53 GB, free: 83.63 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001461/0.706, allocations: 0.7432 MB / 0.5307 GB, free: 82.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007061/0.7067, allocations: 262.8 kB / 0.5309 GB, free: 82.63 MB / 378.7 MB Notification: Performance of SimCode: time 2.504e-06/0.7067, allocations: 0 / 0.5309 GB, free: 82.63 MB / 378.7 MB Notification: Performance of Templates: time 0.01343/0.7201, allocations: 10.15 MB / 0.5408 GB, free: 72.4 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/jenkins1/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