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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 89.58 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 177.1 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.539/1.539, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002953/0.0002953, allocations: 4 kB / 301.4 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1611/0.1614, allocations: 50.42 MB / 351.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003539/0.165, allocations: 1.823 MB / 353.7 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003538/0.1686, allocations: 1.091 MB / 354.7 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002437/0.1688, allocations: 4 kB / 354.7 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002627/0.1691, allocations: 39.7 kB / 354.8 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002255/0.1694, allocations: 31.75 kB / 354.8 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006749/0.1701, allocations: 159.7 kB / 355 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007683/0.1708, allocations: 415.7 kB / 355.4 MB, free: 136 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004658/0.1713, allocations: 152.9 kB / 355.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001313/0.1726, allocations: 0.7914 MB / 356.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004851/0.1731, allocations: 211 kB / 356.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001409/0.1733, allocations: 12 kB / 356.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.1734, allocations: 8 kB / 356.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002495/0.1737, allocations: 123.5 kB / 356.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003963/0.1741, allocations: 200.5 kB / 356.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001213/0.1753, allocations: 0.8799 MB / 357.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.1753, allocations: 0 / 357.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.1753, allocations: 0 / 357.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.547e-05/0.1754, allocations: 0 / 357.7 MB, free: 13.75 MB / 302.1 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.002042/0.1774, allocations: 0.7205 MB / 358.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.32e-05/0.1775, allocations: 12.03 kB / 358.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000386/0.1779, allocations: 44.47 kB / 358.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008283/0.1787, allocations: 351.4 kB / 358.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.08e-05/0.1788, allocations: 29.03 kB / 358.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001925/0.179, allocations: 28.38 kB / 358.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.1806, allocations: 498.1 kB / 359.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.1806, allocations: 0 / 359.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.1807, allocations: 16 kB / 359.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.1808, allocations: 12 kB / 359.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.182, allocations: 390.3 kB / 359.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003011/0.185, allocations: 1.108 MB / 360.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001656/0.1867, allocations: 475.5 kB / 361.4 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005333/0.1873, allocations: 194.1 kB / 361.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.826e-05/0.1874, allocations: 8.219 kB / 361.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008649/0.1882, allocations: 351 kB / 361.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.835e-06/0.1883, allocations: 4 kB / 361.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002158/0.1904, allocations: 0.7384 MB / 362.7 MB, free: 8.621 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.1905, allocations: 114.8 kB / 362.8 MB, free: 8.484 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005202/0.1911, allocations: 306.4 kB / 363.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.1912, allocations: 41.7 kB / 363.1 MB, free: 8.133 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002109/0.1914, allocations: 188.6 kB / 363.3 MB, free: 7.945 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001755/0.1916, allocations: 79 kB / 363.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.1918, allocations: 65.69 kB / 363.4 MB, free: 7.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.192, allocations: 342.7 kB / 363.8 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000589/0.1926, allocations: 196.8 kB / 364 MB, free: 7.262 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006233/0.1932, allocations: 236.5 kB / 364.2 MB, free: 7.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.1945, allocations: 0.5328 MB / 364.7 MB, free: 6.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.1945, allocations: 0 / 364.7 MB, free: 6.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001794/0.1963, allocations: 0.6526 MB / 365.4 MB, free: 5.777 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.851e-05/0.1964, allocations: 67.39 kB / 365.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.1964, allocations: 0 / 365.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.048e-05/0.1964, allocations: 4 kB / 365.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002274/0.1967, allocations: 59.91 kB / 365.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.512e-05/0.1967, allocations: 4 kB / 365.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005947/0.1973, allocations: 51.75 kB / 365.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004174/0.1977, allocations: 291.7 kB / 365.9 MB, free: 5.297 MB / 302.1 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,$PRE.FF.And2.auxiliary_n,FF.RS2.TD1.x_delayed,$PRE.FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.x[2],FF.RS2.Nor2.x[1],$PRE.FF.And4.auxiliary_n,FF.RS1.TD1.x_delayed,$PRE.FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.x[2],FF.RS1.Nor2.x[1],$PRE.FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And4.x[1],FF.And3.auxiliary_n,FF.And3.x[2],$PRE.FF.And1.auxiliary_n,FF.And1.y,FF.RS2.TD1.x,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary[2],K.y,J.y,CLK.t_i,$PRE.CLK.t_i,FF.Not1.auxiliary,$PRE.FF.And3.auxiliary_n,FF.And3.y,FF.And2.auxiliary_n,FF.And2.auxiliary[2],FF.And2.x[1],FF.And1.auxiliary_n,FF.And1.auxiliary[2],FF.And1.x[1],FF.RS1.TD1.x,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary[2]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005427/0.1983, allocations: 285.1 kB / 366.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.1985, allocations: 27.72 kB / 366.2 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.1986, allocations: 38.95 kB / 366.2 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.1986, allocations: 8 kB / 366.2 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.1986, allocations: 0 / 366.2 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.1987, allocations: 3.984 kB / 366.2 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009742/0.1996, allocations: 481.1 kB / 366.7 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-06/0.1997, allocations: 0 / 366.7 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/0.1998, allocations: 51.91 kB / 366.7 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.1998, allocations: 0 / 366.7 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/0.2, allocations: 51.97 kB / 366.8 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.2, allocations: 0 / 366.8 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2, allocations: 0 / 366.8 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/0.2016, allocations: 0.6256 MB / 367.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004439/0.2021, allocations: 188.7 kB / 367.6 MB, free: 3.434 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/0.2023, allocations: 16 kB / 367.6 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004525/0.2027, allocations: 51.84 kB / 367.7 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003543/0.2031, allocations: 87.89 kB / 367.7 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004476/0.2036, allocations: 279.7 kB / 368 MB, free: 3.008 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003419/0.2039, allocations: 209.9 kB / 368.2 MB, free: 2.805 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.204, allocations: 0 / 368.2 MB, free: 2.805 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008018/0.2048, allocations: 95.75 kB / 368.3 MB, free: 2.711 MB / 302.1 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[1],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[1],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.x[1],FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (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,K.y,J.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003647/0.2051, allocations: 149.7 kB / 368.5 MB, free: 2.559 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.2068, allocations: 0.5608 MB / 369 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.2068, allocations: 4.062 kB / 369 MB, free: 1.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008373/0.2076, allocations: 358.6 kB / 369.4 MB, free: 1.594 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002044/0.2097, allocations: 309.9 kB / 369.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00222/0.2119, allocations: 0.8201 MB / 370.5 MB, free: 460 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2406/0.4526, allocations: 0.8087 MB / 371.3 MB, free: 24.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.002016/0.4547, allocations: 0.7459 MB / 372.1 MB, free: 23.87 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007192/0.4554, allocations: 264.6 kB / 372.3 MB, free: 23.71 MB / 302.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4554, allocations: 0 / 372.3 MB, free: 23.71 MB / 302.1 MB Notification: Performance of Templates: time 0.02245/0.4779, allocations: 10.29 MB / 382.6 MB, free: 21 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches