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.0009469/0.000947, allocations: 182.6 kB / 18.04 MB, free: 3.785 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.476/1.476, allocations: 205.4 MB / 224.2 MB, free: 9.051 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.000944/0.000944, allocations: 85.48 kB / 272.5 MB, free: 8.293 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003943/0.0003944, allocations: 12 kB / 329.5 MB, free: 15.3 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2795, allocations: 47.57 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1075/0.3871, allocations: 82.61 MB / 459.6 MB, free: 13.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/0.3874, allocations: 71.95 kB / 459.7 MB, free: 13.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08659/0.474, allocations: 42.61 MB / 0.4905 GB, free: 3.344 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4741, allocations: 0 / 0.4905 GB, free: 3.344 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.354e-05/0.4741, allocations: 15.94 kB / 0.4906 GB, free: 3.328 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.00125/0.4754, allocations: 0.7252 MB / 0.4913 GB, free: 2.535 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.4754, allocations: 8.031 kB / 0.4913 GB, free: 2.527 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001831/0.4756, allocations: 48.38 kB / 0.4913 GB, free: 2.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000542/0.4762, allocations: 356.2 kB / 0.4917 GB, free: 2.094 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.218e-05/0.4762, allocations: 25.03 kB / 0.4917 GB, free: 2.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.674e-05/0.4763, allocations: 32.38 kB / 0.4917 GB, free: 2.039 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009287/0.4773, allocations: 498.3 kB / 0.4922 GB, free: 1.543 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.4773, allocations: 192 / 0.4922 GB, free: 1.543 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.629e-05/0.4774, allocations: 19.94 kB / 0.4922 GB, free: 1.523 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.4774, allocations: 8 kB / 0.4922 GB, free: 1.516 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007909/0.4782, allocations: 398.3 kB / 0.4926 GB, free: 1.129 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001821/0.48, allocations: 1.07 MB / 0.4936 GB, free: 4 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1997/0.6797, allocations: 451.3 kB / 0.4941 GB, free: 104 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004982/0.6803, allocations: 175.8 kB / 0.4942 GB, free: 104 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.571e-05/0.6804, allocations: 3.938 kB / 0.4942 GB, free: 104 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007506/0.6811, allocations: 351.7 kB / 0.4946 GB, free: 103.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 3.687e-06/0.6812, allocations: 0.5312 kB / 0.4946 GB, free: 103.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.001531/0.6827, allocations: 0.7239 MB / 0.4953 GB, free: 103.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.83e-05/0.6828, allocations: 108.9 kB / 0.4954 GB, free: 103.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004001/0.6832, allocations: 303.5 kB / 0.4957 GB, free: 103.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.586e-05/0.6832, allocations: 40.61 kB / 0.4957 GB, free: 103.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.6834, allocations: 175.6 kB / 0.4959 GB, free: 103.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.999e-05/0.6835, allocations: 81.39 kB / 0.496 GB, free: 103.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.003e-05/0.6835, allocations: 13.84 kB / 0.496 GB, free: 103.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.904e-05/0.6836, allocations: 342.3 kB / 0.4963 GB, free: 103.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003564/0.684, allocations: 177.8 kB / 0.4965 GB, free: 103.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003885/0.6844, allocations: 238.5 kB / 0.4967 GB, free: 103.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008337/0.6852, allocations: 0.5136 MB / 0.4972 GB, free: 102.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.6852, allocations: 1.125 kB / 0.4972 GB, free: 102.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001105/0.6863, allocations: 0.6395 MB / 0.4978 GB, free: 102.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.31e-05/0.6864, allocations: 59.41 kB / 0.4979 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.6864, allocations: 4.656 kB / 0.4979 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.508e-05/0.6865, allocations: 3.406 kB / 0.4979 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.6866, allocations: 64.89 kB / 0.4979 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.612e-05/0.6867, allocations: 6.875 kB / 0.498 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003752/0.687, allocations: 49.97 kB / 0.498 GB, free: 102.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003051/0.6874, allocations: 279.2 kB / 0.4983 GB, free: 102.7 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.0003813/0.6877, allocations: 290.9 kB / 0.4985 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.008e-05/0.6878, allocations: 35.34 kB / 0.4986 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.558e-05/0.6879, allocations: 39.64 kB / 0.4986 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.6879, allocations: 3.75 kB / 0.4986 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.6879, allocations: 1.406 kB / 0.4986 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.82e-06/0.688, allocations: 2.281 kB / 0.4986 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005597/0.6885, allocations: 467.1 kB / 0.4991 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.6885, allocations: 0 / 0.4991 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001067/0.6887, allocations: 50.53 kB / 0.4991 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.6887, allocations: 4.453 kB / 0.4991 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-05/0.6887, allocations: 49.55 kB / 0.4992 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.6888, allocations: 0.9688 kB / 0.4992 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.6888, allocations: 7.875 kB / 0.4992 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.6898, allocations: 0.6032 MB / 0.4998 GB, free: 102.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002629/0.6901, allocations: 194.1 kB / 0.5 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.6902, allocations: 20.45 kB / 0.5 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/0.6904, allocations: 40.8 kB / 0.5 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/0.6906, allocations: 87.84 kB / 0.5001 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002879/0.6909, allocations: 278.3 kB / 0.5004 GB, free: 102 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00019/0.6911, allocations: 203.4 kB / 0.5006 GB, free: 102 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6911, allocations: 3.688 kB / 0.5006 GB, free: 102 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004687/0.6916, allocations: 89.56 kB / 0.5006 GB, free: 101.9 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.000183/0.6918, allocations: 139.8 kB / 0.5008 GB, free: 101.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000944/0.6928, allocations: 0.5486 MB / 0.5013 GB, free: 101.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.6928, allocations: 0 / 0.5013 GB, free: 101.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004745/0.6932, allocations: 355.5 kB / 0.5017 GB, free: 101.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001054/0.6943, allocations: 286 kB / 0.5019 GB, free: 101.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.6956, allocations: 0.7915 MB / 0.5027 GB, free: 101.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000249/0.6958, allocations: 0.8074 MB / 0.5035 GB, free: 100.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001326/0.6972, allocations: 0.7438 MB / 0.5042 GB, free: 100 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007065/0.6979, allocations: 265.5 kB / 0.5045 GB, free: 99.89 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.6979, allocations: 0 / 0.5045 GB, free: 99.89 MB / 378.7 MB Notification: Performance of Templates: time 0.01345/0.7114, allocations: 10.12 MB / 0.5144 GB, free: 98.07 MB / 378.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/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_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches