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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 106.8 kB / 17.15 MB, free: 6.305 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.001469/0.001469, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.979/1.979, allocations: 205.1 MB / 223.9 MB, free: 12.37 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 51.92 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.162/0.1634, allocations: 46.63 MB / 326.6 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.005758/0.1692, allocations: 2.189 MB / 328.8 MB, free: 2.684 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004238/0.1735, allocations: 1.131 MB / 329.9 MB, free: 1.543 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003776/0.174, allocations: 7.938 kB / 329.9 MB, free: 1.535 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004262/0.1745, allocations: 35.77 kB / 330 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002233/0.1748, allocations: 39.7 kB / 330 MB, free: 1.461 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009725/0.1758, allocations: 147.9 kB / 330.1 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007567/0.1765, allocations: 423.5 kB / 330.6 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005461/0.1771, allocations: 152.9 kB / 330.7 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001867/0.179, allocations: 0.807 MB / 331.5 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006692/0.1797, allocations: 243 kB / 331.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001399/0.1798, allocations: 16 kB / 331.8 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001521/0.18, allocations: 16 kB / 331.8 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000354/0.1804, allocations: 131.5 kB / 331.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000407/0.1808, allocations: 190.8 kB / 332.1 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001226/0.182, allocations: 0.8998 MB / 333 MB, free: 14.46 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.1821, allocations: 0 / 333 MB, free: 14.46 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1821, allocations: 0 / 333 MB, free: 14.46 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.321e-05/0.1821, allocations: 4 kB / 333 MB, free: 14.45 MB / 286.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.002283/0.1844, allocations: 0.8762 MB / 333.9 MB, free: 13.51 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.345e-05/0.1845, allocations: 8.031 kB / 333.9 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002009/0.1847, allocations: 48.47 kB / 333.9 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007253/0.1854, allocations: 347.4 kB / 334.3 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.37e-05/0.1855, allocations: 25.03 kB / 334.3 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001482/0.1857, allocations: 40.36 kB / 334.3 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.1872, allocations: 490.1 kB / 334.8 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.1872, allocations: 11.94 kB / 334.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.1873, allocations: 12 kB / 334.8 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.977e-05/0.1874, allocations: 8 kB / 334.8 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.1887, allocations: 374.4 kB / 335.2 MB, free: 12.13 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003019/0.1917, allocations: 1.108 MB / 336.3 MB, free: 10.97 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001748/0.1935, allocations: 435.5 kB / 336.7 MB, free: 10.54 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000607/0.1941, allocations: 181.3 kB / 336.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.649e-05/0.1942, allocations: 8.281 kB / 336.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001081/0.1953, allocations: 339.2 kB / 337.3 MB, free: 10 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 3.677e-06/0.1954, allocations: 0 / 337.3 MB, free: 10 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002506/0.1979, allocations: 0.7267 MB / 338 MB, free: 9.258 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.198, allocations: 110.8 kB / 338.1 MB, free: 9.125 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000573/0.1986, allocations: 310.4 kB / 338.4 MB, free: 8.816 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.1987, allocations: 41.7 kB / 338.4 MB, free: 8.77 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002294/0.199, allocations: 180.7 kB / 338.6 MB, free: 8.586 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.1992, allocations: 82.95 kB / 338.7 MB, free: 8.504 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004291/0.1996, allocations: 182 kB / 338.9 MB, free: 8.32 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.1998, allocations: 346.7 kB / 339.2 MB, free: 7.973 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006232/0.2005, allocations: 176.8 kB / 339.4 MB, free: 7.801 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007492/0.2012, allocations: 240.5 kB / 339.6 MB, free: 7.551 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.2027, allocations: 0.5261 MB / 340.1 MB, free: 6.984 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.2027, allocations: 4 kB / 340.1 MB, free: 6.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001954/0.2047, allocations: 0.6371 MB / 340.8 MB, free: 6.324 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001083/0.2048, allocations: 59.41 kB / 340.8 MB, free: 6.254 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.639e-06/0.2049, allocations: 0 / 340.8 MB, free: 6.254 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.003e-05/0.2049, allocations: 4 kB / 340.8 MB, free: 6.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002611/0.2052, allocations: 75.77 kB / 340.9 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/0.2052, allocations: 0 / 340.9 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005731/0.2058, allocations: 55.72 kB / 341 MB, free: 6.121 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004264/0.2062, allocations: 283.7 kB / 341.3 MB, free: 5.844 MB / 286.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.0006128/0.2068, allocations: 285.1 kB / 341.5 MB, free: 5.543 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001516/0.207, allocations: 31.72 kB / 341.6 MB, free: 5.512 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001104/0.2071, allocations: 34.95 kB / 341.6 MB, free: 5.477 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.2072, allocations: 4 kB / 341.6 MB, free: 5.473 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.2072, allocations: 4 kB / 341.6 MB, free: 5.469 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.2072, allocations: 3.984 kB / 341.6 MB, free: 5.465 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/0.2083, allocations: 477.1 kB / 342.1 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.739e-06/0.2083, allocations: 0 / 342.1 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.2085, allocations: 59.89 kB / 342.1 MB, free: 4.891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.2085, allocations: 0 / 342.1 MB, free: 4.891 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001128/0.2086, allocations: 47.92 kB / 342.2 MB, free: 4.844 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.184e-06/0.2086, allocations: 3.984 kB / 342.2 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2086, allocations: 0 / 342.2 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.2106, allocations: 0.6216 MB / 342.8 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006227/0.2112, allocations: 196.6 kB / 343 MB, free: 3.977 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001532/0.2114, allocations: 12 kB / 343 MB, free: 3.965 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003856/0.2118, allocations: 35.97 kB / 343 MB, free: 3.93 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003973/0.2122, allocations: 87.91 kB / 343.1 MB, free: 3.844 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005191/0.2127, allocations: 279.7 kB / 343.4 MB, free: 3.57 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004644/0.2132, allocations: 209.9 kB / 343.6 MB, free: 3.367 MB / 286.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.2132, allocations: 0 / 343.6 MB, free: 3.367 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008525/0.2141, allocations: 103.8 kB / 343.7 MB, free: 3.266 MB / 286.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.0003883/0.2145, allocations: 133.8 kB / 343.8 MB, free: 3.125 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001766/0.2163, allocations: 0.553 MB / 344.4 MB, free: 2.547 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2163, allocations: 0 / 344.4 MB, free: 2.547 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009274/0.2172, allocations: 358.5 kB / 344.7 MB, free: 2.172 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001801/0.219, allocations: 301 kB / 345 MB, free: 1.875 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002681/0.2217, allocations: 0.8218 MB / 345.9 MB, free: 1.023 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007039/0.2225, allocations: 0.8072 MB / 346.7 MB, free: 192 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.002538/0.225, allocations: 0.751 MB / 347.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001044/0.2261, allocations: 262.8 kB / 347.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of SimCode: time 2.054e-06/0.2261, allocations: 0 / 347.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Templates: time 0.02875/0.2549, allocations: 10.35 MB / 358 MB, free: 4.609 MB / 302.1 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/jenkins/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